commit | 503627fc2acb875b4c7b58a7f6e258cfcbad054b | [log] [tgz] |
---|---|---|
author | Alex Henrie <alexhenrie24@gmail.com> | Tue Mar 02 03:20:25 2021 -0700 |
committer | GitHub <noreply@github.com> | Tue Mar 02 10:20:25 2021 +0000 |
tree | 1f55b7b9821ebf7a85666bcbf62bbb4e826bfae4 | |
parent | 25e244c92501e84b0fd6e7539e15c0e640d42cc1 [diff] |
bpo-43358: Fix bad free in assemble function (GH-24697)
diff --git a/Python/compile.c b/Python/compile.c index 454005e..b0d3127 100644 --- a/Python/compile.c +++ b/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;