diff options
author | Guido van Rossum <guido@python.org> | 2001-03-23 04:01:07 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-03-23 04:01:07 (GMT) |
commit | 4131830c23727aac262291934007c0b731b6e00c (patch) | |
tree | 617b4ae16cd6a0553ce1130dfedd02fe8ac6f9df /Python | |
parent | ac1abe0bfe52acf7249807f79d57134e599d3cb0 (diff) | |
download | cpython-4131830c23727aac262291934007c0b731b6e00c.zip cpython-4131830c23727aac262291934007c0b731b6e00c.tar.gz cpython-4131830c23727aac262291934007c0b731b6e00c.tar.bz2 |
Fix memory leak with SyntaxError. (The DECREF was originally hidden
inside a piece of code that was deemed reduntant; the DECREF was
unfortunately *not* redundant!)
Diffstat (limited to 'Python')
-rw-r--r-- | Python/pythonrun.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index 6fa85ac..bb5e482 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1201,6 +1201,7 @@ err_input(perrdetail *err) break; } w = Py_BuildValue("(sO)", msg, v); + Py_XDECREF(v); PyErr_SetObject(errtype, w); Py_XDECREF(w); } |