summaryrefslogtreecommitdiffstats
path: root/Objects/structseq.c
diff options
context:
space:
mode:
authorNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 15:33:15 (GMT)
committerNeil Schemenauer <nascheme@enme.ucalgary.ca>2002-03-22 15:33:15 (GMT)
commitdcc819a5c9e3cb60eba05a3c0b2547bc1fb28b80 (patch)
tree124d72d29df550ba35d3a4b6ba66232619c85ee1 /Objects/structseq.c
parenta1a9c51a3ef06614413f45d51e65588bcd0793f2 (diff)
downloadcpython-dcc819a5c9e3cb60eba05a3c0b2547bc1fb28b80.zip
cpython-dcc819a5c9e3cb60eba05a3c0b2547bc1fb28b80.tar.gz
cpython-dcc819a5c9e3cb60eba05a3c0b2547bc1fb28b80.tar.bz2
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 377dfeb..7231ce1 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