8000 Fix another refleak · python/cpython@13f5d76 · GitHub
[go: up one dir, main page]

Skip to content

Commit 13f5d76

Browse files
committed
Fix another refleak
1 parent 4217830 commit 13f5d76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/symtable.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1684,8 +1684,10 @@ symtable_visit_stmt(struct symtable *st, stmt_ty s)
16841684
}
16851685

16861686
if (!symtable_visit_annotations(st, s, s->v.FunctionDef.args,
1687-
s->v.FunctionDef.returns, new_ste))
1687+
s->v.FunctionDef.returns, new_ste)) {
1688+
Py_DECREF(new_ste);
16881689
VISIT_QUIT(st, 0);
1690+
}
16891691
if (!symtable_enter_existing_block(st, new_ste)) {
16901692
Py_DECREF(new_ste);
16911693
VISIT_QUIT(st, 0);

0 commit comments

Comments
 (0)
0