Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 503627f

Browse files
authored
bpo-43358: Fix bad free in assemble function (GH-24697)
1 parent 25e244c commit 503627f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Python/compile.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6664,12 +6664,12 @@ assemble(struct compiler *c, int addNone)
66646664

66656665
for (basicblock *b = c->u->u_blocks; b != NULL; b = b->b_list) {
66666666
if (normalize_basic_block(b)) {
6667-
goto error;
6667+
return NULL;
66686668
}
66696669
}
66706670

66716671
if (ensure_exits_have_lineno(c)) {
6672-
goto error;
6672+
return NULL;
66736673
}
66746674

66756675
nblocks = 0;

0 commit comments

Comments
 (0)