Skip to content

Commit 0e29768

Browse files
authored
gh-156466: fix cleanup on error in codegen_function_annotations (#156502)
1 parent ed1aa1f commit 0e29768

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/codegen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1196,7 +1196,7 @@ codegen_function_annotations(compiler *c, location loc,
11961196
RETURN_IF_ERROR_IN_SCOPE(
11971197
c, codegen_annotations_in_scope(c, loc, args, returns, &annotations_len)
11981198
);
1199-
ADDOP_I(c, loc, BUILD_MAP, annotations_len);
1199+
ADDOP_I_IN_SCOPE(c, loc, BUILD_MAP, annotations_len);
12001200
RETURN_IF_ERROR(codegen_leave_annotations_scope(c, loc));
12011201
return MAKE_FUNCTION_ANNOTATE;
12021202
}

0 commit comments

Comments
 (0)