Skip to content

Commit 577de24

Browse files
committed
Fix refleak in binascii.c
1 parent 6acaf65 commit 577de24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/binascii.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -924,7 +924,7 @@ binascii_a2b_ascii85_impl(PyObject *module, Py_buffer *data, int foldspaces,
924924
}
925925
unsigned char *bin_data = PyBytesWriter_GetData(writer);
926926
if (bin_data == NULL) {
927-
return NULL;
927+
goto error;
928928
}
929929

930930
uint32_t leftchar = 0;

0 commit comments

Comments
 (0)