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

iwlib/utils.h: Avoid leaking reference to object #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

willnewton
Copy link

If we don't decrement the reference count of the object we insert into
the dictionary then we will leak the object later.

http://nedbatchelder.com/blog/200911/memory_leak_mystery.html

If we don't decrement the reference count of the object we insert into
the dictionary then we will leak the object later.

http://nedbatchelder.com/blog/200911/memory_leak_mystery.html
@nhoad
Copy link
Owner

nhoad commented Oct 26, 2016

Thanks Will! I've been run off my feet recently with moving, but I'll try to look at this over the weekend.

For what it's worth, I do have a branch for moving to CFFI instead, which would mean no more reference count shenanigans. Maybe it's time I start trying to push that out?

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