summaryrefslogtreecommitdiffstats
path: root/Python/getargs.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-03-16 17:23:39 (GMT)
committerBenjamin Peterson <benjamin@python.org>2012-03-16 17:23:39 (GMT)
commitf7c132158d39800681eb4e7b0fdcbb0affd45315 (patch)
tree05e4a8bda7b78b3f980b838fb7d6a7c86c3a5581 /Python/getargs.c
parent7ed67270a89f77a6063c2fd20153e7f91332f25b (diff)
downloadcpython-f7c132158d39800681eb4e7b0fdcbb0affd45315.zip
cpython-f7c132158d39800681eb4e7b0fdcbb0affd45315.tar.gz
cpython-f7c132158d39800681eb4e7b0fdcbb0affd45315.tar.bz2
use memory macros
Diffstat (limited to 'Python/getargs.c')
-rw-r--r--Python/getargs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Python/getargs.c b/Python/getargs.c
index 268a113..ba677b4 100644
--- a/Python/getargs.c
+++ b/Python/getargs.c
@@ -191,7 +191,7 @@ cleanreturn(int retval, freelist_t *freelist)
freelist->entries[index].item);
}
}
- PyMem_Free(freelist->entries);
+ PyMem_FREE(freelist->entries);
return retval;
}
@@ -266,7 +266,7 @@ vgetargs1(PyObject *args, const char *format, va_list *p_va, int flags)
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 @@ vgetargskeywords(PyObject *args, PyObject *keywords, const char *format,
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;