diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-07-11 15:05:29 -0700 |
---|---|---|
committer | Victor Stinner <vstinner@redhat.com> | 2018-07-12 00:05:29 +0200 |
commit | 3b06285d2b7963d9d06b60e85712d5ecc6540deb (patch) | |
tree | 00728e49bacd5014669a93c29a8748befa2b0108 /Python/pythonrun.c | |
parent | ec7562068fd123969ab4d27e11f4070271c72e16 (diff) | |
download | cpython-git-3b06285d2b7963d9d06b60e85712d5ecc6540deb.tar.gz |
bpo-34080: Fix a memory leak in the compiler. (GH-8222) (GH-8257)
(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 7db7052e35..f03ccc2792 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1328,7 +1328,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) |