From: Stefan Behnel Date: Sun, 22 Feb 2009 11:12:59 +0000 (+0100) Subject: fix leaking classmethods in cdef classes X-Git-Tag: 0.11.rc~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6f3769d1a03db33a05927221e6897fce5c701cc9;p=cython.git fix leaking classmethods in cdef classes --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 8ab9019e..97a58830 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -1302,6 +1302,8 @@ class NameNode(AtomicExprNode): namespace, self.interned_cname, rhs.py_result())) + rhs.generate_disposal_code(code) + rhs.free_temps(code) # in Py2.6+, we need to invalidate the method cache code.putln("PyType_Modified(%s);" % entry.scope.parent_type.typeptr_cname)