summaryrefslogtreecommitdiff
path: root/python/rpmds-py.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/rpmds-py.c')
-rw-r--r--python/rpmds-py.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/python/rpmds-py.c b/python/rpmds-py.c
index dccd9a79e..5ac4dda09 100644
--- a/python/rpmds-py.c
+++ b/python/rpmds-py.c
@@ -379,10 +379,8 @@ The current index in ds is positioned at overlapping member upon success.\n" },
static void
rpmds_dealloc(rpmdsObject * s)
{
- if (s) {
- s->ds = rpmdsFree(s->ds);
- PyObject_Del(s);
- }
+ s->ds = rpmdsFree(s->ds);
+ s->ob_type->tp_free((PyObject *)s);
}
static int