fix leaking classmethods in cdef classes
authorStefan Behnel <scoder@users.berlios.de>
Sun, 22 Feb 2009 11:12:59 +0000 (12:12 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 22 Feb 2009 11:12:59 +0000 (12:12 +0100)
Cython/Compiler/ExprNodes.py

index 8ab9019eec355a1720a3c254e46fc11874570969..97a58830728b05bc0510edf65492260859b1f73c 100644 (file)
@@ -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)