mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-34080: Fix a memory leak in the compiler. (GH-8222)
This commit is contained in:
parent
b12112b5ba
commit
993030aac5
2 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue