Skip to content

Commit

Permalink
bpo-34080: Fix a memory leak in the compiler. (GH-8222) (GH-8257)
Browse files Browse the repository at this point in the history
(cherry picked from commit 993030a)

Co-authored-by: Serhiy Storchaka <[email protected]>
  • Loading branch information
2 people authored and vstinner committed Jul 11, 2018
1 parent ec75620 commit 3b06285
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fixed a memory leak in the compiler when it raised some uncommon errors
during tokenizing.
2 changes: 1 addition & 1 deletion Python/pythonrun.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3b06285

Please sign in to comment.