Skip to content

Commit 645f5c4

Browse files
gh-144822: remove redundant decref in codegen.c (#144823)
1 parent caac966 commit 645f5c4

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Python/codegen.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1422,7 +1422,6 @@ codegen_function_body(compiler *c, stmt_ty s, int is_async, Py_ssize_t funcflags
14221422
PyCodeObject *co = _PyCompile_OptimizeAndAssemble(c, 1);
14231423
_PyCompile_ExitScope(c);
14241424
if (co == NULL) {
1425-
Py_XDECREF(co);
14261425
return ERROR;
14271426
}
14281427
int ret = codegen_make_closure(c, LOC(s), co, funcflags);

0 commit comments

Comments
 (0)