diff options
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-03-05 09:34:14 (GMT) |
---|---|---|
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | 2009-03-05 09:34:14 (GMT) |
commit | a3e6c9763c475a93ab5fab0a42b2b3718e196d93 (patch) | |
tree | caee2d0b888b334560b349498478fda5fccaec01 /Objects | |
parent | c51ec0a9e381590858f122ec2f5c4d97ae89b0c7 (diff) | |
download | cpython-a3e6c9763c475a93ab5fab0a42b2b3718e196d93.zip cpython-a3e6c9763c475a93ab5fab0a42b2b3718e196d93.tar.gz cpython-a3e6c9763c475a93ab5fab0a42b2b3718e196d93.tar.bz2 |
Fixed memory leak on failure.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bytearrayobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/bytearrayobject.c b/Objects/bytearrayobject.c index 4cfd9f8..ad37366 100644 --- a/Objects/bytearrayobject.c +++ b/Objects/bytearrayobject.c @@ -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; } |