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 martin.panter
Recipients abarry, martin.panter, myronww
Date 2015-12-07.23:18:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1449530335.23.0.309331595476.issue25716@psf.upfronthosting.co.za>
In-reply-to
Content
I don’t see any bug with countformat(), but if you can explain in more detail that would be good.

Myron, you are right that the build-value function has to fail to trigger this leak. But from my reading of the code, I think it would probably only happen for an out-of-memory error (e.g. allocating the tuple return value). Both call_method() and call_maybe() are static, and all the call sites look like they give valid format strings that would not fail except for the out-of-memory condition.

Emanuel: if this can only produced by an out-of-memory error, it would be hard to demonstrate the leak. (Maybe use Victor Stinner’s malloc failure tool? I never tried it.) But IMO the code is incorrect as it is. If it is going to be handling an error, it should be cleaning up properly.
History
Date User Action Args
2015-12-07 23:18:55martin.pantersetrecipients: + martin.panter, abarry, myronww
2015-12-07 23:18:55martin.pantersetmessageid: <1449530335.23.0.309331595476.issue25716@psf.upfronthosting.co.za>
2015-12-07 23:18:55martin.panterlinkissue25716 messages
2015-12-07 23:18:54martin.pantercreate