Browse Source
bpo-43358: Fix bad free in assemble function (GH-24697)
pull/24704/head
Alex Henrie
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
Python/compile.c
|
|
|
@ -6664,12 +6664,12 @@ assemble(struct compiler *c, int addNone) |
|
|
|
|
|
|
|
for (basicblock *b = c->u->u_blocks; b != NULL; b = b->b_list) { |
|
|
|
if (normalize_basic_block(b)) { |
|
|
|
goto error; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (ensure_exits_have_lineno(c)) { |
|
|
|
goto error; |
|
|
|
return NULL; |
|
|
|
} |
|
|
|
|
|
|
|
nblocks = 0; |
|
|
|
|