From: Serhiy Storchaka Date: Mon, 26 Jan 2026 21:15:21 +0000 (+0200) Subject: gh-142037: Fix a refleak introduced in GH-142081 (GH-144256) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25206173619f5f387c88eb258948adcfe66d4966;p=thirdparty%2FPython%2Fcpython.git gh-142037: Fix a refleak introduced in GH-142081 (GH-144256) --- 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); }