diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-07-11 21:53:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-11 21:53:17 (GMT) |
commit | a45fa39d85fc500d530d05d3ec7b36eb5d286f5e (patch) | |
tree | b5e15269519f305e79c373160ed120ca79a2e426 /Python | |
parent | ef19fd200d0768919f1658466f8b6080b191fba0 (diff) | |
download | cpython-a45fa39d85fc500d530d05d3ec7b36eb5d286f5e.zip cpython-a45fa39d85fc500d530d05d3ec7b36eb5d286f5e.tar.gz cpython-a45fa39d85fc500d530d05d3ec7b36eb5d286f5e.tar.bz2 |
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')
-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 44fe13d..c33b6c0 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1590,7 +1590,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) |