Skip to content

Commit 31b9ab0

Browse files
committed
1 parent f859c3c commit 31b9ab0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Objects/bytesobject.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2554,8 +2554,9 @@ _PyBytes_FromHex(PyObject *string, int use_bytearray)
25542554

25552555
/* This overestimates if there are spaces */
25562556
buf = _PyBytesWriter_Alloc(&writer, hexlen / 2);
2557-
if (buf == NULL)
2557+
if (buf == NULL) {
25582558
goto release_buffer;
2559+
}
25592560

25602561
start = str;
25612562
end = str + hexlen;

0 commit comments

Comments
 (0)