diff options
author | jbj <devnull@localhost> | 2002-12-10 19:46:03 +0000 |
---|---|---|
committer | jbj <devnull@localhost> | 2002-12-10 19:46:03 +0000 |
commit | fe6043016c84107132bd0dc80ef454d2c81342b7 (patch) | |
tree | ea5626d927f361cbd2b7bce8b4f6351b64240ec2 /python/rpmmi-py.c | |
parent | d412f8be53602c3a06d3b7b05a2fdae1af8a2b01 (diff) | |
download | librpm-tizen-fe6043016c84107132bd0dc80ef454d2c81342b7.tar.gz librpm-tizen-fe6043016c84107132bd0dc80ef454d2c81342b7.tar.bz2 librpm-tizen-fe6043016c84107132bd0dc80ef454d2c81342b7.zip |
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
Diffstat (limited to 'python/rpmmi-py.c')
-rw-r--r-- | python/rpmmi-py.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); |