mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +00:00
Fixed memory leak on failure.
This commit is contained in:
parent
c51ec0a9e3
commit
a3e6c9763c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue