summaryrefslogtreecommitdiff
path: root/python/rpmds-py.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-24 13:40:44 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-24 13:40:44 +0300
commitdf40d9b27b1dc8bd82f8f1c8a17d357df3fae330 (patch)
tree76f4269a7ce55cad0c7c8b44b49dde1958fd01f8 /python/rpmds-py.c
parentd5f5156bd09338eceba7eeb6c5122ecc58afb0a1 (diff)
downloadlibrpm-tizen-df40d9b27b1dc8bd82f8f1c8a17d357df3fae330.tar.gz
librpm-tizen-df40d9b27b1dc8bd82f8f1c8a17d357df3fae330.tar.bz2
librpm-tizen-df40d9b27b1dc8bd82f8f1c8a17d357df3fae330.zip
Eliminate all custom tp_free() type methods
- tp_free()'s purpose is only to free up the memory used by the python object structure, cleaning up our own allocations belongs to tp_dealloc()
Diffstat (limited to 'python/rpmds-py.c')
-rw-r--r--python/rpmds-py.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c
index 5ac4dda09..8750dda0f 100644
--- a/python/rpmds-py.c
+++ b/python/rpmds-py.c
@@ -416,13 +416,6 @@ static int rpmds_init(rpmdsObject * s, PyObject *args, PyObject *kwds)
return 0;
}
-static void rpmds_free(rpmdsObject * s)
-{
- s->ds = rpmdsFree(s->ds);
-
- PyObject_Del((PyObject *)s);
-}
-
static PyObject * rpmds_new(PyTypeObject * subtype, PyObject *args, PyObject *kwds)
{
hdrObject * ho = NULL;
@@ -485,7 +478,7 @@ PyTypeObject rpmds_Type = {
(initproc) rpmds_init, /* tp_init */
0, /* tp_alloc */
(newfunc) rpmds_new, /* tp_new */
- (freefunc) rpmds_free, /* tp_free */
+ 0, /* tp_free */
0, /* tp_is_gc */
};