summaryrefslogtreecommitdiff
path: root/Python/pythonrun.c
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-07-11 14:54:29 -0700
committerGitHub <noreply@github.com>2018-07-11 14:54:29 -0700
commit9beed0c36f4ce990ded095575ba3124e2264dbbe (patch)
treea9a76d4dff36394779715c3710ebed66e8d47e46 /Python/pythonrun.c
parent48d2aeb009f8e58b1efae00ee0e225951b58737e (diff)
downloadcpython-git-9beed0c36f4ce990ded095575ba3124e2264dbbe.tar.gz
bpo-34080: Fix a memory leak in the compiler. (GH-8222)
(cherry picked from commit 993030aac576710a46b3dd0b4864f819d4a94145) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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 64b874ee11..9b9d63ccd8 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)