diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-07-11 14:54:29 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 14:54:29 -0700 |
commit | 9beed0c36f4ce990ded095575ba3124e2264dbbe (patch) | |
tree | a9a76d4dff36394779715c3710ebed66e8d47e46 /Python/pythonrun.c | |
parent | 48d2aeb009f8e58b1efae00ee0e225951b58737e (diff) | |
download | cpython-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.c | 2 |
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) |