Skip to content

Commit 604ab79

Browse files
[3.14] gh-156466: fix cleanup on error in codegen_function_annotations (GH-156502) (#156509)
gh-156466: fix cleanup on error in codegen_function_annotations (GH-156502) (cherry picked from commit 0e29768) Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 parent e93fe16 commit 604ab79

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
@@ -1138,7 +1138,7 @@ codegen_function_annotations(compiler *c, location loc,
11381138
RETURN_IF_ERROR_IN_SCOPE(
11391139
c, codegen_annotations_in_scope(c, loc, args, returns, &annotations_len)
11401140
);
1141-
ADDOP_I(c, loc, BUILD_MAP, annotations_len);
1141+
ADDOP_I_IN_SCOPE(c, loc, BUILD_MAP, annotations_len);
11421142
RETURN_IF_ERROR(codegen_leave_annotations_scope(c, loc));
11431143
return MAKE_FUNCTION_ANNOTATE;
11441144
}

0 commit comments

Comments
 (0)