From: Alex Henrie Date: Tue, 2 Mar 2021 10:20:25 +0000 (-0700) Subject: bpo-43358: Fix bad free in assemble function (GH-24697) X-Git-Tag: v3.10.0a7~217 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=503627fc2acb875b4c7b58a7f6e258cfcbad054b;p=thirdparty%2FPython%2Fcpython.git bpo-43358: Fix bad free in assemble function (GH-24697) --- diff --git a/Python/compile.c b/Python/compile.c index 454005eb7b0c..b0d3127ff687 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;