Skip to content

Commit 6af0e7f

Browse files
committed
fix refleak
1 parent cd989ad commit 6af0e7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Python/compile.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2553,6 +2553,7 @@ compiler_class_body(struct compiler *c, stmt_ty s, int firstlineno)
25532553
return ERROR;
25542554
}
25552555
ADDOP_LOAD_CONST(c, NO_LOCATION, expected_attributes);
2556+
Py_CLEAR(expected_attributes);
25562557
if (compiler_nameop(c, NO_LOCATION, &_Py_ID(__expected_attributes__), Store) < 0) {
25572558
compiler_exit_scope(c);
25582559
return ERROR;

0 commit comments

Comments
 (0)