gh-144822: remove redundant decref in codegen.c (#144823)

This commit is contained in:
Benedikt Johannes 2026-02-14 20:20:33 +01:00 committed by GitHub
parent caac966b00
commit 645f5c4a73
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);