[Python-bugs-list] [ python-Bugs-703666 ] Several objects don't decref tmp on failure in subtype_new
SourceForge.net
noreply@sourceforge.net
Fri, 14 Mar 2003 07:08:06 -0800
Bugs item #703666, was opened at 2003-03-14 10:08
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=703666&group_id=5470
Category: Type/class unification
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Christopher A. Craig (ccraig)
Assigned to: Nobody/Anonymous (nobody)
Summary: Several objects don't decref tmp on failure in subtype_new
Initial Comment:
Several objects have a something_subtype_new which
creates a new object of a given subtype that if the
subtype creation routine fails for any reason, returns
NULL but leaves a temporary variable with a reference.
The only normal reason this would occur is if you ran
out of memory (in which case it wouldn't matter), but I
don't think the core can predict that it knows that to
be the only reason an unknown subtype might return NULL
in it's alloc.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=703666&group_id=5470