commit | 4131830c23727aac262291934007c0b731b6e00c | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Mar 23 04:01:07 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Mar 23 04:01:07 2001 +0000 |
tree | 617b4ae16cd6a0553ce1130dfedd02fe8ac6f9df | |
parent | ac1abe0bfe52acf7249807f79d57134e599d3cb0 [diff] [blame] |
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!)
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 @@ break; } w = Py_BuildValue("(sO)", msg, v); + Py_XDECREF(v); PyErr_SetObject(errtype, w); Py_XDECREF(w); }