summaryrefslogtreecommitdiffstats
path: root/Objects/listobject.c
diff options
context:
space:
mode:
Diffstat (limited to 'Objects/listobject.c')
-rw-r--r--Objects/listobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/listobject.c b/Objects/listobject.c
index e85e2f4..52640fb 100644
--- a/Objects/listobject.c
+++ b/Objects/listobject.c
@@ -60,7 +60,7 @@ PyList_New(int size)
else {
op->ob_item = (PyObject **) PyMem_MALLOC(nbytes);
if (op->ob_item == NULL) {
- PyObject_FREE(op);
+ PyObject_FREE(PyObject_AS_GC(op));
return PyErr_NoMemory();
}
}