mirror of
https://github.com/python/cpython.git
synced 2026-01-12 10:20:23 +00:00
bpo-34080: Fix a memory leak in the compiler. (GH-8222) (GH-8257)
(cherry picked from commit 993030aac5)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
ec7562068f
commit
3b06285d2b
2 changed files with 3 additions and 1 deletions
|
|
@ -1328,7 +1328,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