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

Fix #14 Memory Leaks #30

Merged
merged 3 commits into from
Oct 28, 2017
Merged

Fix #14 Memory Leaks #30

merged 3 commits into from
Oct 28, 2017

Conversation

joshemorris
Copy link
Contributor

When pointers are passed from C/C++ to Python, Python takes ownership of the memory. Objects with data members that were dynamically allocated were not being freed correctly.

For more information:
https://cffi.readthedocs.io/en/latest/using.html#working-with-pointers-structures-and-arrays

@ryanleary
Copy link
Collaborator

Looks good! I think that covers the ones I know of. Anything else or should we go ahead and merge?

@joshemorris
Copy link
Contributor Author

Cool! Those were all the ones I could find. I think it should be good to merge.

@ryanleary ryanleary merged commit d2e728c into parlance:master Oct 28, 2017
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.

2 participants