diff options
Diffstat (limited to 'python/rpmps-py.c')
-rw-r--r-- | python/rpmps-py.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/python/rpmps-py.c b/python/rpmps-py.c index 82422c0d1..c9f6050fa 100644 --- a/python/rpmps-py.c +++ b/python/rpmps-py.c @@ -61,10 +61,8 @@ static struct PyMethodDef rpmps_methods[] = { static void rpmps_dealloc(rpmpsObject * s) { - if (s) { - s->ps = rpmpsFree(s->ps); - PyObject_Del(s); - } + s->ps = rpmpsFree(s->ps); + s->ob_type->tp_free((PyObject *)s); } static int |