]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-142037: Fix a refleak introduced in GH-142081 (GH-144256)
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 26 Jan 2026 21:15:21 +0000 (23:15 +0200)
committerGitHub <noreply@github.com>
Mon, 26 Jan 2026 21:15:21 +0000 (21:15 +0000)
Objects/bytesobject.c

index b85cbfe43e11e01138a3a504fae090ffd83019db..00c1c63b8e01c66626f39f9273e2ae12b3b79f92 100644 (file)
@@ -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);
     }