From 645f5c4a737b3eab29d0b7bcd4ec5f8bd36f332d Mon Sep 17 00:00:00 2001 From: Benedikt Johannes Date: Sat, 14 Feb 2026 20:20:33 +0100 Subject: [PATCH] gh-144822: remove redundant decref in `codegen.c` (#144823) --- Python/codegen.c | 1 - 1 file changed, 1 deletion(-) diff --git a/Python/codegen.c b/Python/codegen.c index 32a03e7212e..42fccb07d31 100644 --- a/Python/codegen.c +++ b/Python/codegen.c @@ -1422,7 +1422,6 @@ codegen_function_body(compiler *c, stmt_ty s, int is_async, Py_ssize_t funcflags PyCodeObject *co = _PyCompile_OptimizeAndAssemble(c, 1); _PyCompile_ExitScope(c); if (co == NULL) { - Py_XDECREF(co); return ERROR; } int ret = codegen_make_closure(c, LOC(s), co, funcflags);