From: Neil Schemenauer Date: Fri, 22 Mar 2002 15:41:03 +0000 (+0000) Subject: Use pymalloc for realloc() as well. X-Git-Tag: v2.3c1~6402 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1b0e4fcc2915ea72f23ccdf50320811f36ae187c;p=thirdparty%2FPython%2Fcpython.git Use pymalloc for realloc() as well. --- diff --git a/Modules/gcmodule.c b/Modules/gcmodule.c index 23a137edb741..71e9596e4b93 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