Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a6aa71d

Browse files
committed
Oops: we used PyMem_DEL() to clean up objects, and that's a problem since
pymalloc, apparently. Fixed, but this means all bgen-generated modules will have to be re-generated. I hope (and expect) that the pymalloc fixes aren't bugfix candidates, because if they are this is one too.
1 parent bbeb1e6 commit a6aa71d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Tools/bgen/bgen/bgenObjectDefinition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def outputDealloc(self):
123123
Output("static void %s_dealloc(%s *self)", self.prefix, self.objecttype)
124124
OutLbrace()
125125
self.outputCleanupStructMembers()
126-
Output("PyMem_DEL(self);")
126+
Output("PyObject_Del(self);")
127127
OutRbrace()
128128

129129
def outputCleanupStructMembers(self):

0 commit comments

Comments
 (0)