[Patches] [ python-Patches-703666 ] Several objects don't decref tmp on failure in subtype_new
SourceForge.net
noreply@sourceforge.net
Sat, 28 Jun 2003 07:15:14 -0700
Patches item #703666, was opened at 2003-03-14 10:08
Message generated for change (Settings changed) made by rhettinger
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=703666&group_id=5470
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Christopher A. Craig (ccraig)
>Assigned to: Raymond Hettinger (rhettinger)
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.
----------------------------------------------------------------------
Comment By: Neal Norwitz (nnorwitz)
Date: 2003-05-22 16:34
Message:
Logged In: YES
user_id=33168
All of these look correct. Moving to patches.
----------------------------------------------------------------------
Comment By: Christopher A. Craig (ccraig)
Date: 2003-03-17 10:18
Message:
Logged In: YES
user_id=135050
Apparently upload didn't take the first time
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=703666&group_id=5470