From ab847bb50b28a0010a70103be9eef489dceeccc5 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Thu, 29 Jan 2009 22:20:08 +0100 Subject: [PATCH] Refnanny fix --- Cython/Compiler/ExprNodes.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index f55c715c..0c4d8d89 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -2886,6 +2886,7 @@ class AttributeNode(NewTempExprNode): select_code = self.result() if self.type.is_pyobject: rhs.make_owned_reference(code) + code.put_giveref(rhs.py_result()) code.put_decref(select_code, self.ctype()) code.putln( "%s = %s;" % ( -- 2.26.2