diff Objects/structseq.c @ 22446:d5aad6c581c9 legacy-trunk

Use pymalloc if it's enabled.
author Neil Schemenauer <nascheme@enme.ucalgary.ca>
date Fri, 22 Mar 2002 15:33:15 +0000
parents 68831ac5495b
children 363c7fc174ac
line wrap: on
line diff
--- a/Objects/structseq.c	Fri Mar 22 15:28:30 2002 +0000
+++ b/Objects/structseq.c	Fri Mar 22 15:33:15 2002 +0000
@@ -22,7 +22,7 @@
 {
 	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 @@
 	for (i = 0; i < size; ++i) {
 		Py_XDECREF(obj->ob_item[i]);
 	}
-	PyObject_FREE(obj);
+	PyMalloc_Del(obj);
 }
 
 static int