bpo-34080: Fix a memory leak in the compiler. (GH-8222)
This commit is contained in:
parent
b12112b5ba
commit
993030aac5
|
@ -0,0 +1,2 @@
|
|||
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)
|
||||
|
|
Loading…
Reference in New Issue