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

Memory Leak: getaddrinfo is not freed using freeaddrinfo #1

Open
Val-de-mar opened this issue Dec 3, 2024 · 0 comments
Open

Memory Leak: getaddrinfo is not freed using freeaddrinfo #1

Val-de-mar opened this issue Dec 3, 2024 · 0 comments

Comments

@Val-de-mar
Copy link

There appears to be a memory leak in the file template_cpp/src/include/parser.hpp. The function getaddrinfo is called at line 65, but its result is not properly freed using freeaddrinfo. According to the POSIX documentation, any memory allocated by getaddrinfo must be released with freeaddrinfo to prevent memory leaks.
I hope this feedback is helpful for improvement.

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