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 memory leak in Python binding of istore_get_uuids() #179

Open
jesper-friis opened this issue Nov 26, 2021 · 0 comments
Open

Fix memory leak in Python binding of istore_get_uuids() #179

jesper-friis opened this issue Nov 26, 2021 · 0 comments

Comments

@jesper-friis
Copy link
Collaborator

The C memory returned by dlite_swig_istore_get_uuids() will be leaked when the wrapped Python object goes out of scope.

We need to tell SWIG that is has ownership of the memory and that it should free it when the corresponding python object goes out of scope. Can be done with the SWIG %newobject and %delobject directives.

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