mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
bpo-43358: Fix bad free in assemble function (GH-24697)
This commit is contained in:
parent
25e244c925
commit
503627fc2a
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue