cython-devel

changeset 1729:85680600a6c9

Fix memleak in cascaded comparisons.
author Robert Bradshaw <robertwb@math.washington.edu>
date Fri Feb 20 21:55:25 2009 -0800 (2 years ago)
parents a1c61ffe08ae
children c41d1099aff9
files Cython/Compiler/ExprNodes.py
line diff
1.1 --- a/Cython/Compiler/ExprNodes.py Fri Feb 20 21:26:46 2009 -0800 1.2 +++ b/Cython/Compiler/ExprNodes.py Fri Feb 20 21:55:25 2009 -0800 1.3 @@ -4814,6 +4814,7 @@ 1.4 def generate_evaluation_code(self, code, result, operand1): 1.5 if self.type.is_pyobject: 1.6 code.putln("if (__Pyx_PyObject_IsTrue(%s)) {" % result) 1.7 + code.put_decref(result, self.type) 1.8 else: 1.9 code.putln("if (%s) {" % result) 1.10 self.operand2.generate_evaluation_code(code)