From 993030aac576710a46b3dd0b4864f819d4a94145 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Thu, 12 Jul 2018 00:17:53 +0300 Subject: bpo-34080: Fix a memory leak in the compiler. (GH-8222) --- Python/pythonrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index bcd1ca931d..10605db0b6 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) -- cgit v1.2.1