commit | 993030aac576710a46b3dd0b4864f819d4a94145 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu Jul 12 00:17:53 2018 +0300 |
committer | Victor Stinner <vstinner@redhat.com> | Wed Jul 11 23:17:53 2018 +0200 |
tree | 1187fb352dacedee71b7c52b446f4ec5ae645d87 | |
parent | b12112b5ba608cdd7a0962a6b18cad4fe58b46e6 [diff] [blame] |
bpo-34080: Fix a memory leak in the compiler. (GH-8222)
diff --git a/Python/pythonrun.c b/Python/pythonrun.c index bcd1ca9..10605db 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c
@@ -1339,7 +1339,7 @@ errtype = PyExc_SyntaxError; switch (err->error) { case E_ERROR: - return; + goto cleanup; case E_SYNTAX: errtype = PyExc_IndentationError; if (err->expected == INDENT)