summaryrefslogtreecommitdiffstats
path: root/Modules/gcmodule.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 15:41:03 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 15:41:03 (GMT)
commit1b0e4fcc2915ea72f23ccdf50320811f36ae187c (patch)
treeee0d2a77f73dd3c7360be6ddd876042b8db78ed2 /Modules/gcmodule.c
parentb26ca9db2e1efdac62893799c49e3db2c127d56b (diff)
downloadcpython-1b0e4fcc2915ea72f23ccdf50320811f36ae187c.zip
cpython-1b0e4fcc2915ea72f23ccdf50320811f36ae187c.tar.gz
cpython-1b0e4fcc2915ea72f23ccdf50320811f36ae187c.tar.bz2
Use pymalloc for realloc() as well.
Diffstat (limited to 'Modules/gcmodule.c')
-rw-r--r--Modules/gcmodule.c4
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