From: Dag Sverre Seljebotn Date: Sat, 27 Sep 2008 11:40:27 +0000 (+0200) Subject: Fixed reference leak for NewTempExprNode X-Git-Tag: 0.9.9.2.beta~63^2~7^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a6695f2f2cbb23df9a55c3778517e5f96bca5daf;p=cython.git Fixed reference leak for NewTempExprNode --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index c78f505f..bea8b1b0 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -601,6 +601,8 @@ class NewTempExprNode(ExprNode): def generate_disposal_code(self, code): if self.is_temp: + if self.type.is_pyobject: + code.put_decref_clear(self.result(), self.ctype()) if not self.backwards_compatible_result: code.funcstate.release_temp(self.temp_code) else: