]> granicus.if.org Git - python/commitdiff
Oops: we used PyMem_DEL() to clean up objects, and that's a problem since
authorJack Jansen <jack.jansen@cwi.nl>
Fri, 19 Apr 2002 14:29:47 +0000 (14:29 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Fri, 19 Apr 2002 14:29:47 +0000 (14:29 +0000)
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.

Tools/bgen/bgen/bgenObjectDefinition.py

index 71cf21da8e4cc616f883f49c6b09dd0c9eec4429..87ae40f8c1a5c251c40af95e30621645f574b50b 100644 (file)
@@ -123,7 +123,7 @@ class ObjectDefinition(GeneratorGroup):
                Output("static void %s_dealloc(%s *self)", self.prefix, self.objecttype)
                OutLbrace()
                self.outputCleanupStructMembers()
-               Output("PyMem_DEL(self);")
+               Output("PyObject_Del(self);")
                OutRbrace()
 
        def outputCleanupStructMembers(self):