summaryrefslogtreecommitdiffstats
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 78c5624..6948829 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -992,13 +992,14 @@ err_input(err)
break;
case E_TOKEN:
msg = "invalid token";
-
break;
case E_INTR:
PyErr_SetNone(PyExc_KeyboardInterrupt);
+ Py_XDECREF(v);
return;
case E_NOMEM:
PyErr_NoMemory();
+ Py_XDECREF(v);
return;
case E_EOF:
msg = "unexpected EOF while parsing";