From 3b06285d2b7963d9d06b60e85712d5ecc6540deb Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Wed, 11 Jul 2018 15:05:29 -0700 Subject: bpo-34080: Fix a memory leak in the compiler. (GH-8222) (GH-8257) (cherry picked from commit 993030aac576710a46b3dd0b4864f819d4a94145) Co-authored-by: Serhiy Storchaka --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/pythonrun.c') 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) -- cgit v1.2.1