summaryrefslogtreecommitdiffstats
path: root/Objects/bytearrayobject.c
diff options
context:
space:
mode:
authorHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-03-05 09:34:14 (GMT)
committerHirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp>2009-03-05 09:34:14 (GMT)
commita3e6c9763c475a93ab5fab0a42b2b3718e196d93 (patch)
treecaee2d0b888b334560b349498478fda5fccaec01 /Objects/bytearrayobject.c
parentc51ec0a9e381590858f122ec2f5c4d97ae89b0c7 (diff)
downloadcpython-a3e6c9763c475a93ab5fab0a42b2b3718e196d93.zip
cpython-a3e6c9763c475a93ab5fab0a42b2b3718e196d93.tar.gz
cpython-a3e6c9763c475a93ab5fab0a42b2b3718e196d93.tar.bz2
Fixed memory leak on failure.
Diffstat (limited to 'Objects/bytearrayobject.c')
-rw-r--r--Objects/bytearrayobject.c2
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;
}