Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaking fds when creating / destroying lws_context instances #2744

Open
ERobsham opened this issue Oct 19, 2022 · 1 comment
Open

Leaking fds when creating / destroying lws_context instances #2744

ERobsham opened this issue Oct 19, 2022 · 1 comment

Comments

@ERobsham
Copy link

While investigating a port leak crash in software I maintain, I found that the source of the leak was due to the file descriptors returned by pipe() call in lws_plat_pipe_create() not getting cleaned up in the lws_context_destroy() call.

This can be easily reproduced by just recreating connections (running lws_context_create() / lws_context_destroy() multiple times in the same program).

I created an example client that I was using to debug the leak / test a fix in this branch.

Will be putting in a PR for a potential fix shortly.

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

No branches or pull requests

1 participant