projects
/
platform
/
upstream
/
rpm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Call (sub)type tp_free from destructors
[platform/upstream/rpm.git]
/
python
/
header-py.c
diff --git
a/python/header-py.c
b/python/header-py.c
index
29a2f7e
..
9bd05c0
100644
(file)
--- a/
python/header-py.c
+++ b/
python/header-py.c
@@
-402,7
+402,7
@@
static PyObject *hdr_new(PyTypeObject *subtype, PyObject *args, PyObject *kwds)
static void hdr_dealloc(hdrObject * s)
{
if (s->h) headerFree(s->h);
-
PyObject_Del(
s);
+
s->ob_type->tp_free((PyObject *)
s);
}
int tagNumFromPyObject (PyObject *item, rpmTag *tagp)