mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Always use self->ob_type->tp_free when freeing an object.
This commit is contained in:
parent
6810f92d4d
commit
77e8ad4684
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue