summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-03-23 04:01:07 +0000
committerGuido van Rossum <guido@python.org>2001-03-23 04:01:07 +0000
commit5f398d1ed8293edc519cb89cc93ff657140f9ddd (patch)
tree21ef4142411619c1b6bfe576684ca254383d97d4 /Python/pythonrun.c
parentc6f319113aeda667fde6a167e18ec49cf664f146 (diff)
downloadcpython-5f398d1ed8293edc519cb89cc93ff657140f9ddd.tar.gz
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 6fa85ac08c..bb5e482829 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);
}