bpo-34080: Fix a memory leak in the compiler. (GH-8222)
(cherry picked from commit 993030aac5
)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
ef19fd200d
commit
a45fa39d85
|
@ -0,0 +1,2 @@
|
|||
Fixed a memory leak in the compiler when it raised some uncommon errors
|
||||
during tokenizing.
|
|
@ -1590,7 +1590,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