summaryrefslogtreecommitdiff
path: root/Objects/structseq.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 15:33:15 +0000
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 15:33:15 +0000
commit7b663cca19201ea190f8b8465752b7779c879333 (patch)
treef3027a9987ecdb2137a0736eac44523d26ff8a48 /Objects/structseq.c
parent9af446c9811b56a80cae8873df10ee1a7506e242 (diff)
downloadcpython-7b663cca19201ea190f8b8465752b7779c879333.tar.gz
Use pymalloc if it's enabled.
Diffstat (limited to 'Objects/structseq.c')
-rw-r--r--Objects/structseq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c
index 377dfebd2e..7231ce1ec6 100644
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -22,7 +22,7 @@ PyStructSequence_New(PyTypeObject *type)
{
PyStructSequence *obj;
- obj = PyObject_New(PyStructSequence, type);
+ obj = PyMalloc_New(PyStructSequence, type);
obj->ob_size = VISIBLE_SIZE_TP(type);
return (PyObject*) obj;
@@ -37,7 +37,7 @@ structseq_dealloc(PyStructSequence *obj)
for (i = 0; i < size; ++i) {
Py_XDECREF(obj->ob_item[i]);
}
- PyObject_FREE(obj);
+ PyMalloc_Del(obj);
}
static int