summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-07-12 00:17:53 +0300
committerVictor Stinner <vstinner@redhat.com>2018-07-11 23:17:53 +0200
commit993030aac576710a46b3dd0b4864f819d4a94145 (patch)
tree1187fb352dacedee71b7c52b446f4ec5ae645d87 /Python/pythonrun.c
parentb12112b5ba608cdd7a0962a6b18cad4fe58b46e6 (diff)
downloadcpython-git-993030aac576710a46b3dd0b4864f819d4a94145.tar.gz
bpo-34080: Fix a memory leak in the compiler. (GH-8222)
Diffstat (limited to 'Python/pythonrun.c')
-rw-r--r--Python/pythonrun.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index bcd1ca931d..10605db0b6 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -1339,7 +1339,7 @@ err_input(perrdetail *err)
errtype = PyExc_SyntaxError;
switch (err->error) {
case E_ERROR:
- return;
+ goto cleanup;
case E_SYNTAX:
errtype = PyExc_IndentationError;
if (err->expected == INDENT)