Skip to content

Commit e99eb55

Browse files
committed
add null check for sym_new(ctx) in make_bottom
1 parent a57209e commit e99eb55

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Python/optimizer_symbols.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,9 @@ static JitOptSymbol *
16841684
make_bottom(JitOptContext *ctx)
16851685
{
16861686
JitOptSymbol *sym = sym_new(ctx);
1687+
if (res == NULL) {
1688+
return out_of_space_ref(ctx);
1689+
}
16871690
sym->tag = JIT_SYM_BOTTOM_TAG;
16881691
return sym;
16891692
}

0 commit comments

Comments
 (0)