This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author cassou
Recipients cassou, lemburg, tim.peters
Date 2012-05-08.13:19:48
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336483189.75.0.262092061745.issue14752@psf.upfronthosting.co.za>
In-reply-to
Content
In add_methods() function from typeobject.c, it looks like Py_DECREF is not called where it should be. Please find attached a patch that fixes the leak. The patch is also in commit #85a01718b3e3 of my hg repository under the branch fix_add_methods_leak.

This bug has been found using Coccinelle (http://coccinelle.lip6.fr/) and a dedicated semantic patch (https://gist.github.com/2634899).
History
Date User Action Args
2012-05-08 13:19:49cassousetrecipients: + cassou, lemburg, tim.peters
2012-05-08 13:19:49cassousetmessageid: <1336483189.75.0.262092061745.issue14752@psf.upfronthosting.co.za>
2012-05-08 13:19:49cassoulinkissue14752 messages
2012-05-08 13:19:48cassoucreate