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

Resolved memory leak #15

Merged
merged 1 commit into from Sep 25, 2015
Merged

Resolved memory leak #15

merged 1 commit into from Sep 25, 2015

Conversation

ghost
Copy link

@ghost ghost commented Sep 25, 2015

I was running into an issue of memory leaking when using this module. It appears that the primary culprit (although Valgrind still identifies some smaller leaks currently) is when env_emu_new is called, there are no corresponding env_emu_free function calls. I have updated this is the Cython code, and regenerated it.

I do plan on checking out the other memory leaks in the near future, but this PR handles one which can make this module quickly fill the RAM of lighter devices if continually called.

@buffer
Copy link
Owner

buffer commented Sep 25, 2015

Thanks! Really appreciated!

buffer added a commit that referenced this pull request Sep 25, 2015
@buffer buffer merged commit 6f01911 into buffer:master Sep 25, 2015
@buffer
Copy link
Owner

buffer commented Sep 25, 2015

I reverted the pull request because I am experiencing some segfaults while executing the tests. Can you please run them locally? (move to tests directory and run sctest.py -s 0) I would like to understand if it depends on your patch or on the new version on Cython.

@buffer
Copy link
Owner

buffer commented Sep 25, 2015

Seems like it happens even after reverting the patch so it should be a Cython issue.

@buffer
Copy link
Owner

buffer commented Sep 25, 2015

Feel free to resubmit the patch. The bug is not related to it. Thanks.

@ghost
Copy link
Author

ghost commented Sep 25, 2015

Will do :)

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.

None yet

1 participant