[Python-checkins] r70188 - python/trunk/Objects/bytearrayobject.c

hirokazu.yamamoto python-checkins at python.org
Thu Mar 5 10:34:14 CET 2009


Author: hirokazu.yamamoto
Date: Thu Mar  5 10:34:14 2009
New Revision: 70188

Log:
Fixed memory leak on failure.

Modified:
   python/trunk/Objects/bytearrayobject.c

Modified: python/trunk/Objects/bytearrayobject.c
==============================================================================
--- python/trunk/Objects/bytearrayobject.c	(original)
+++ python/trunk/Objects/bytearrayobject.c	Thu Mar  5 10:34:14 2009
@@ -298,7 +298,7 @@
 
     size = va.len + vb.len;
     if (size < 0) {
-            return PyErr_NoMemory();
+            PyErr_NoMemory();
             goto done;
     }
 


More information about the Python-checkins mailing list