Commit a45fa39d authored by Miss Islington (bot)'s avatar Miss Islington (bot) Committed by GitHub

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

(cherry picked from commit 993030aa)
Co-authored-by: default avatarSerhiy Storchaka <storchaka@gmail.com>
parent ef19fd20
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment