From: Jack Jansen Date: Fri, 19 Apr 2002 14:29:47 +0000 (+0000) Subject: Oops: we used PyMem_DEL() to clean up objects, and that's a problem since X-Git-Tag: v2.3c1~5882 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6aa71deec4694cdaf7ee3f72fbd2602335cd781;p=python 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. --- diff --git a/Tools/bgen/bgen/bgenObjectDefinition.py b/Tools/bgen/bgen/bgenObjectDefinition.py index 71cf21da8e..87ae40f8c1 100644 --- a/Tools/bgen/bgen/bgenObjectDefinition.py +++ b/Tools/bgen/bgen/bgenObjectDefinition.py @@ -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):