-
Notifications
You must be signed in to change notification settings - Fork 154
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 in sp_open? #47
Comments
bump -- any thoughts? |
~/craft/sophia/test valgrind ./sophia-leak ~/craft/sophia/test valgrind --version That is funny, I might have outdated valgrind, i will check it up :) |
Very strange -- I've got the same version:
|
There might be difference in pthread implementation (libc version), i need to checkout proper condition variable cleanup on exit. Thanks) |
Do you get the same successful results when running |
yeah, just rechecked. As far as i can see in source code, there are missed condition variable destruction on sp_destroy. Seems to be pthread implementation started to allocate memory for their own purposes, so the problem came up :) |
Interesting. If you point me in the right direction, I can try my hand at a fix :) |
The example leaks 48 bytes (see this valgrind report):
Is something wrong with the example, or is there a leak in Sophia?
The text was updated successfully, but these errors were encountered: