Fix temp allocation problem in SliceNode
authorDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Mon, 2 Feb 2009 21:00:31 +0000 (22:00 +0100)
committerDag Sverre Seljebotn <dagss@student.matnat.uio.no>
Mon, 2 Feb 2009 21:00:31 +0000 (22:00 +0100)
Cython/Compiler/ExprNodes.py

index 0fba35709476b909388878a24864331f64954d51..847efacf92071e0d4d256528bb9f1af95277173c 100644 (file)
@@ -2066,6 +2066,7 @@ class SliceIndexNode(ExprNode):
                         self.base.result(), start_offset, i,
                         rhs.result(), i))
         self.generate_subexpr_disposal_code(code)
+        self.free_subexpr_temps(code)
         rhs.generate_disposal_code(code)
         rhs.free_temps(code)