diff options
author | Benjamin Peterson <benjamin@python.org> | 2010-11-21 15:12:34 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2010-11-21 15:12:34 (GMT) |
commit | 0a4dae5309ab30d3a217d3eb0329e3b3feec736c (patch) | |
tree | 66d08d0834fa6a38f6872c86c5c48d36c6797b0d /Parser/asdl_c.py | |
parent | e4dad4f8e239be6d9d1fd3e5398584a7d2a14edb (diff) | |
download | cpython-0a4dae5309ab30d3a217d3eb0329e3b3feec736c.zip cpython-0a4dae5309ab30d3a217d3eb0329e3b3feec736c.tar.gz cpython-0a4dae5309ab30d3a217d3eb0329e3b3feec736c.tar.bz2 |
fix refleak
Diffstat (limited to 'Parser/asdl_c.py')
-rwxr-xr-x | Parser/asdl_c.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/asdl_c.py b/Parser/asdl_c.py index c5fd365..d6555d6 100755 --- a/Parser/asdl_c.py +++ b/Parser/asdl_c.py @@ -376,6 +376,7 @@ class Obj2ModVisitor(PickleVisitor): self.emit(format % error, 1, reflow=False) if add_label: self.emit("failed:", 1) + self.emit("Py_XDECREF(tmp);", 1) self.emit("return 1;", 1) self.emit("}", 0) self.emit("", 0) |