Commit 993030aa authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by Victor Stinner

bpo-34080: Fix a memory leak in the compiler. (GH-8222)

parent b12112b5
Fixed a memory leak in the compiler when it raised some uncommon errors
during tokenizing.
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment