Fixed memory leak on failure.
This commit is contained in:
parent
c51ec0a9e3
commit
a3e6c9763c
|
@ -298,7 +298,7 @@ PyByteArray_Concat(PyObject *a, PyObject *b)
|
|||
|
||||
size = va.len + vb.len;
|
||||
if (size < 0) {
|
||||
return PyErr_NoMemory();
|
||||
PyErr_NoMemory();
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue