[Python-checkins] bpo-43358: Fix bad free in assemble function (GH-24697)
markshannon
webhook-mailer at python.org
Tue Mar 2 05:20:37 EST 2021
https://github.com/python/cpython/commit/503627fc2acb875b4c7b58a7f6e258cfcbad054b
commit: 503627fc2acb875b4c7b58a7f6e258cfcbad054b
branch: master
author: Alex Henrie <alexhenrie24 at gmail.com>
committer: markshannon <mark at hotpy.org>
date: 2021-03-02T10:20:25Z
summary:
bpo-43358: Fix bad free in assemble function (GH-24697)
files:
M Python/compile.c
diff --git a/Python/compile.c b/Python/compile.c
index 454005eb7b0cb..b0d3127ff6878 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;
More information about the Python-checkins
mailing list