Skip to content

Fix memory/socket leak in UniqueId::ethernetMacAddress() #3392

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

Open
wants to merge 1 commit into
base: v3/master
Choose a base branch
from

Conversation

amezin
Copy link

@amezin amezin commented May 27, 2025

what

Don't jump over close()/free() calls. Release the resources correctly in all code paths.

why

Currently, there are memory, and, in case of Linux, socket leaks. goto end jumps over the calls that are supposed to release the memory/close the socket.

references

Initially discovered this on v2 - #3391 - but turns out the code is the same on v3 too.

Copy link

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.

1 participant