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

This commit is contained in:
Serhiy Storchaka 2018-07-12 00:17:53 +03:00 committed by Victor Stinner
parent b12112b5ba
commit 993030aac5
2 changed files with 3 additions and 1 deletions

View File

@ -0,0 +1,2 @@
Fixed a memory leak in the compiler when it raised some uncommon errors
during tokenizing.

View File

@ -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)