From 6f3769d1a03db33a05927221e6897fce5c701cc9 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sun, 22 Feb 2009 12:12:59 +0100 Subject: [PATCH] fix leaking classmethods in cdef classes --- Cython/Compiler/ExprNodes.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.26.2