Verified Commit e6a8bd43 authored by Jelle van der Waa's avatar Jelle van der Waa 🚧
Browse files

Free Python object after freeing the pyalpm handle

parent b665bc52
......@@ -39,9 +39,9 @@ typedef struct _AlpmDB {
static PyTypeObject AlpmDBType;
static void pyalpm_db_dealloc(AlpmDB *self) {
Py_TYPE(self)->tp_free((PyObject*)self);
if (self->handle)
Py_DECREF(self->handle);
Py_TYPE(self)->tp_free((PyObject*)self);
}
static PyObject* _pyobject_from_pmgrp(void *group, PyObject *db) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment