[Patches] [ python-Patches-980082 ] Missing INCREF in PyType_Ready
SourceForge.net
noreply at sourceforge.net
Fri Jun 25 20:37:09 EDT 2004
Patches item #980082, was opened at 2004-06-25 17:37
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=980082&group_id=5470
Category: Core (C code)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Eric Huss (ehuss)
Assigned to: Nobody/Anonymous (nobody)
Summary: Missing INCREF in PyType_Ready
Initial Comment:
In PyType_Ready() if the type object you are readying
does not explicitly define its tp_base value, it will
default to use PyBaseObject_Type.
However, this assignment does not INCREF the
PyBaseObject_Type pointer. Thus, for heap allocated
type objects, when the type_dealloc() function is
called, a DECREF is called on tp_base which can
eventually cause PyBaseObject_Type refcount go to 0,
at which point bad things happen.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=980082&group_id=5470
More information about the Patches
mailing list