python-iwlib
python-iwlib copied to clipboard
iwlib/utils.h: Avoid leaking reference to object
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
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?