From: Benedikt Johannes Date: Sat, 14 Feb 2026 19:20:33 +0000 (+0100) Subject: gh-144822: remove redundant decref in `codegen.c` (#144823) X-Git-Tag: v3.15.0a7~279 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=645f5c4a737b3eab29d0b7bcd4ec5f8bd36f332d;p=thirdparty%2FPython%2Fcpython.git gh-144822: remove redundant decref in `codegen.c` (#144823) --- diff --git a/Python/codegen.c b/Python/codegen.c index 32a03e7212ee..42fccb07d31d 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);