From fe6043016c84107132bd0dc80ef454d2c81342b7 Mon Sep 17 00:00:00 2001 From: jbj Date: Tue, 10 Dec 2002 19:46:03 +0000 Subject: Add tp_{init,alloc,new,free} methods to rpmts. Use PyObject_{New,Del} consistently throughout. CVS patchset: 5931 CVS date: 2002/12/10 19:46:03 --- python/rpmmi-py.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/rpmmi-py.c') diff --git a/python/rpmmi-py.c b/python/rpmmi-py.c index 3af37a7bf..aff0091eb 100644 --- a/python/rpmmi-py.c +++ b/python/rpmmi-py.c @@ -208,7 +208,7 @@ static void rpmmi_dealloc(/*@only@*/ /*@null@*/ rpmmiObject * s) { if (s) { if (s->mi) s->mi = rpmdbFreeIterator(s->mi); - PyMem_DEL(s); + PyObject_Del(s); } } @@ -278,7 +278,7 @@ PyTypeObject rpmmi_Type = { rpmmiObject * rpmmi_Wrap(rpmdbMatchIterator mi) { - rpmmiObject * mio = (rpmmiObject *) PyObject_NEW(rpmmiObject, &rpmmi_Type); + rpmmiObject * mio = (rpmmiObject *) PyObject_New(rpmmiObject, &rpmmi_Type); if (mio == NULL) { PyErr_SetString(pyrpmError, "out of memory creating rpmmiObject"); -- cgit v1.2.3