bpo-43358: Fix bad free in assemble function (GH-24697)

This commit is contained in:
Alex Henrie 2021-03-02 03:20:25 -07:00 committed by GitHub
parent 25e244c925
commit 503627fc2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;