diff options
author | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-22 15:41:03 (GMT) |
---|---|---|
committer | Neil Schemenauer <nascheme@enme.ucalgary.ca> | 2002-03-22 15:41:03 (GMT) |
commit | 1b0e4fcc2915ea72f23ccdf50320811f36ae187c (patch) | |
tree | ee0d2a77f73dd3c7360be6ddd876042b8db78ed2 /Modules | |
parent | b26ca9db2e1efdac62893799c49e3db2c127d56b (diff) | |
download | cpython-1b0e4fcc2915ea72f23ccdf50320811f36ae187c.zip cpython-1b0e4fcc2915ea72f23ccdf50320811f36ae187c.tar.gz cpython-1b0e4fcc2915ea72f23ccdf50320811f36ae187c.tar.bz2 |
Use pymalloc for realloc() as well.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/gcmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 23a137e..71e9596 100644 --- a/Modules/gcmodule.c +++ b/Modules/gcmodule.c @@ -873,12 +873,12 @@ _PyObject_GC_Resize(PyVarObject *op, int nitems) const size_t basicsize = _PyObject_VAR_SIZE(op->ob_type, nitems); #ifdef WITH_CYCLE_GC PyGC_Head *g = AS_GC(op); - g = PyObject_REALLOC(g, sizeof(PyGC_Head) + basicsize); + g = _PyMalloc_REALLOC(g, sizeof(PyGC_Head) + basicsize); if (g == NULL) return (PyVarObject *)PyErr_NoMemory(); op = (PyVarObject *) FROM_GC(g); #else - op = PyObject_REALLOC(op, basicsize); + op = _PyMalloc_REALLOC(op, basicsize); if (op == NULL) return (PyVarObject *)PyErr_NoMemory(); #endif |