From 25206173619f5f387c88eb258948adcfe66d4966 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 26 Jan 2026 23:15:21 +0200 Subject: [PATCH] gh-142037: Fix a refleak introduced in GH-142081 (GH-144256) --- Objects/bytesobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/bytesobject.c b/Objects/bytesobject.c index b85cbfe43e11..00c1c63b8e01 100644 --- a/Objects/bytesobject.c +++ b/Objects/bytesobject.c @@ -1156,6 +1156,7 @@ _PyBytes_FormatEx(const char *format, Py_ssize_t format_len, goto error; } + Py_XDECREF(key); if (args_owned) { Py_DECREF(args); } -- 2.47.3