From 4131830c23727aac262291934007c0b731b6e00c Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 23 Mar 2001 04:01:07 +0000 Subject: 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!) --- Python/pythonrun.c | 1 + 1 file changed, 1 insertion(+) 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); } -- cgit v0.12