-
Notifications
You must be signed in to change notification settings - Fork 522
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
fix(bindings/C): fix the memory found in valgrind. #2673
Conversation
There is still an invalid read problem in the list test. |
I think that the problem originates from the (*self.inner).path().as_ptr() as *const c_char
Now its fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot!
This PR fix the memory leak found in the tests in #2653.
I believe the memory leak is not completely fixed and it could be bettered through more tests on the C binding functionalities.