diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2006-04-10 06:57:06 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2006-04-10 06:57:06 (GMT) |
commit | 14bc4e4d89c46ff418abdd84929fc5832b0a505f (patch) | |
tree | d2b25595c77278bd459e1861c3f4c71b00edc42a /Python/future.c | |
parent | 2c4e4f98397bcc591ad3a551e1e57cea0e2bd986 (diff) | |
download | cpython-14bc4e4d89c46ff418abdd84929fc5832b0a505f.zip cpython-14bc4e4d89c46ff418abdd84929fc5832b0a505f.tar.gz cpython-14bc4e4d89c46ff418abdd84929fc5832b0a505f.tar.bz2 |
Use PyObject_* allocator since FutureFeatures is small
Diffstat (limited to 'Python/future.c')
-rw-r--r-- | Python/future.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/future.c b/Python/future.c index d22ed34..04fec22 100644 --- a/Python/future.c +++ b/Python/future.c @@ -120,14 +120,14 @@ PyFuture_FromAST(mod_ty mod, const char *filename) { PyFutureFeatures *ff; - ff = (PyFutureFeatures *)PyMem_Malloc(sizeof(PyFutureFeatures)); + ff = (PyFutureFeatures *)PyObject_Malloc(sizeof(PyFutureFeatures)); if (ff == NULL) return NULL; ff->ff_features = 0; ff->ff_lineno = -1; if (!future_parse(ff, mod, filename)) { - PyMem_Free((void *)ff); + PyObject_Free(ff); return NULL; } return ff; |