[Python-checkins] cpython: use memory macros
benjamin.peterson
python-checkins at python.org
Fri Mar 16 18:24:28 CET 2012
http://hg.python.org/cpython/rev/212f20284724
changeset: 75747:212f20284724
user: Benjamin Peterson <benjamin at python.org>
date: Fri Mar 16 12:23:39 2012 -0500
summary:
use memory macros
files:
Python/getargs.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Python/getargs.c b/Python/getargs.c
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -191,7 +191,7 @@
freelist->entries[index].item);
}
}
- PyMem_Free(freelist->entries);
+ PyMem_FREE(freelist->entries);
return retval;
}
@@ -266,7 +266,7 @@
format = formatsave;
- freelist.entries = PyMem_New(freelistentry_t, max);
+ freelist.entries = PyMem_NEW(freelistentry_t, max);
if (freelist.entries == NULL) {
PyErr_NoMemory();
return 0;
@@ -1433,7 +1433,7 @@
for (len=0; kwlist[len]; len++)
continue;
- freelist.entries = PyMem_New(freelistentry_t, len);
+ freelist.entries = PyMem_NEW(freelistentry_t, len);
if (freelist.entries == NULL) {
PyErr_NoMemory();
return 0;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list