Skip to content

Improve memory release with leave_room#75

Open
gfroissard wants to merge 2 commits intolivekit:mainfrom
gfroissard:gfr/improve-memory-release
Open

Improve memory release with leave_room#75
gfroissard wants to merge 2 commits intolivekit:mainfrom
gfroissard:gfr/improve-memory-release

Conversation

@gfroissard
Copy link

Summary

This PR improve two things related of the usage of "leave_room" (function not called yet in the sample code).

Possible use after free

In some case, for example, the websocket can try to enqueue a message in a queue which has been freed but the pointer has not been set to NULL.

Possible memory leak

The event group is created by peer_create it is now released in peer_destroy in order to make it symmetric and avoid memory leak.

@CLAassistant
Copy link

CLAassistant commented Feb 15, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants