commit | a3e6c9763c475a93ab5fab0a42b2b3718e196d93 | [log] [tgz] |
---|---|---|
author | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | Thu Mar 05 09:34:14 2009 +0000 |
committer | Hirokazu Yamamoto <ocean-city@m2.ccsnet.ne.jp> | Thu Mar 05 09:34:14 2009 +0000 |
tree | caee2d0b888b334560b349498478fda5fccaec01 | |
parent | c51ec0a9e381590858f122ec2f5c4d97ae89b0c7 [diff] |
Fixed memory leak on failure.
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 @@ size = va.len + vb.len; if (size < 0) { - return PyErr_NoMemory(); + PyErr_NoMemory(); goto done; }