Skip to content

Commit 2520617

Browse files
gh-142037: Fix a refleak introduced in GH-142081 (GH-144256)
1 parent 7febbe6 commit 2520617

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Objects/bytesobject.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,7 @@ _PyBytes_FormatEx(const char *format, Py_ssize_t format_len,
11561156
goto error;
11571157
}
11581158

1159+
Py_XDECREF(key);
11591160
if (args_owned) {
11601161
Py_DECREF(args);
11611162
}

0 commit comments

Comments
 (0)