mirror of
https://github.com/python/cpython.git
synced 2025-11-29 22:41:59 +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;
|
size = va.len + vb.len;
|
||||||
if (size < 0) {
|
if (size < 0) {
|
||||||
return PyErr_NoMemory();
|
PyErr_NoMemory();
|
||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue