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;
(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 */
};
return 0;
}
-static void rpmfi_free(rpmfiObject * s)
-{
- s->fi = rpmfiFree(s->fi);
-
- PyObject_Del((PyObject *)s);
-}
-
static PyObject * rpmfi_new(PyTypeObject * subtype, PyObject *args, PyObject *kwds)
{
hdrObject * ho = NULL;
(initproc) rpmfi_init, /* tp_init */
0, /* tp_alloc */
(newfunc) rpmfi_new, /* tp_new */
- (freefunc) rpmfi_free, /* tp_free */
+ 0, /* tp_free */
0, /* tp_is_gc */
};
(binaryfunc) rpmps_subscript, /* mp_subscript */
};
-static void rpmps_free(rpmpsObject * s)
-{
- s->ps = rpmpsFree(s->ps);
-
- PyObject_Del((PyObject *)s);
-}
-
static PyObject * rpmps_new(PyTypeObject * subtype, PyObject *args, PyObject *kwds)
{
rpmps ps = rpmpsCreate();
0, /* tp_init */
0, /* tp_alloc */
(newfunc) rpmps_new, /* tp_new */
- (freefunc) rpmps_free, /* tp_free */
+ 0, /* tp_free */
0, /* tp_is_gc */
};
return 0;
}
-static void rpmts_free(rpmtsObject * s)
-{
- s->ts = rpmtsFree(s->ts);
-
- if (s->scriptFd)
- Fclose(s->scriptFd);
-
- /* this will free the keyList, and decrement the ref count of all
- the items on the list as well :-) */
- Py_DECREF(s->keyList);
-
- PyObject_Del((PyObject *)s);
-}
-
static PyObject * rpmts_new(PyTypeObject * subtype, PyObject *args, PyObject *kwds)
{
char * rootDir = "/";
0, /* tp_init */
0, /* tp_alloc */
(newfunc) rpmts_new, /* tp_new */
- (freefunc) rpmts_free, /* tp_free */
+ 0, /* tp_free */
0, /* tp_is_gc */
};