missing temp cleanup on assignment to TempRefNode
authorStefan Behnel <scoder@users.berlios.de>
Mon, 8 Dec 2008 20:31:30 +0000 (21:31 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Mon, 8 Dec 2008 20:31:30 +0000 (21:31 +0100)
Cython/Compiler/UtilNodes.py

index ded4dc808c3a9b2ba73d4da5e4ce6236c18daa7f..497ce7e598dc0ee15b3892374764c77e75848602 100644 (file)
@@ -49,6 +49,7 @@ class TempRefNode(AtomicExprNode):
             code.put_xdecref(self.result(), self.ctype())
         code.putln('%s = %s;' % (self.result(), rhs.result_as(self.ctype())))
         rhs.generate_post_assignment_code(code)
+        rhs.free_temps(code)
 
 class CleanupTempRefNode(TempRefNode):
     # handle   TempHandle