[Python-checkins] r55372 - python/trunk/Objects/intobject.c
neal.norwitz
python-checkins at python.org
Wed May 16 06:33:52 CEST 2007
Author: neal.norwitz
Date: Wed May 16 06:33:50 2007
New Revision: 55372
Modified:
python/trunk/Objects/intobject.c
Log:
Port rev 55353 from Guido:
Add what looks like a necessary call to PyErr_NoMemory() when PyMem_MALLOC()
fails.
Will backport.
Modified: python/trunk/Objects/intobject.c
==============================================================================
--- python/trunk/Objects/intobject.c (original)
+++ python/trunk/Objects/intobject.c Wed May 16 06:33:50 2007
@@ -393,7 +393,7 @@
char *buffer = (char *)PyMem_MALLOC(length+1);
if (buffer == NULL)
- return NULL;
+ return PyErr_NoMemory();
if (PyUnicode_EncodeDecimal(s, length, buffer, NULL)) {
PyMem_FREE(buffer);
More information about the Python-checkins
mailing list