summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-23 04:01:07 (GMT)
committerGuido van Rossum <guido@python.org>2001-03-23 04:01:07 (GMT)
commit4131830c23727aac262291934007c0b731b6e00c (patch)
tree617b4ae16cd6a0553ce1130dfedd02fe8ac6f9df /Python/pythonrun.c
parentac1abe0bfe52acf7249807f79d57134e599d3cb0 (diff)
downloadcpython-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/pythonrun.c')
-rw-r--r--Python/pythonrun.c1
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);
}