summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2002-12-19 23:34:40 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2002-12-19 23:34:40 (GMT)
commit77e8ad46842ef4b211edd37329c3ebeec0cb54f9 (patch)
tree32b85a9c6d9ba9d3faad35070a3fc64512653a6b
parent6810f92d4df90e358751b697d1c7a978c007fae0 (diff)
downloadcpython-77e8ad46842ef4b211edd37329c3ebeec0cb54f9.zip
cpython-77e8ad46842ef4b211edd37329c3ebeec0cb54f9.tar.gz
cpython-77e8ad46842ef4b211edd37329c3ebeec0cb54f9.tar.bz2
Always use self->ob_type->tp_free when freeing an object.
-rw-r--r--Tools/bgen/bgen/bgenObjectDefinition.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/bgen/bgen/bgenObjectDefinition.py b/Tools/bgen/bgen/bgenObjectDefinition.py
index 510b9b8..fd60d61 100644
--- a/Tools/bgen/bgen/bgenObjectDefinition.py
+++ b/Tools/bgen/bgen/bgenObjectDefinition.py
@@ -137,7 +137,7 @@ class ObjectDefinition(GeneratorGroup):
if self.basetype:
Output("%s.tp_dealloc(self)", self.basetype)
else:
- Output("PyObject_Del(self);")
+ Output("self->ob_type->tp_free((PyObject *)self);")
OutRbrace()
def outputCleanupStructMembers(self):