summaryrefslogtreecommitdiff
path: root/python/rpmts-py.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/rpmts-py.c')
-rw-r--r--python/rpmts-py.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/rpmts-py.c b/python/rpmts-py.c
index f7748186a..c948d22c8 100644
--- a/python/rpmts-py.c
+++ b/python/rpmts-py.c
@@ -518,6 +518,7 @@ rpmts_Problems(rpmtsObject * s)
while (rpmpsNextIterator(psi) >= 0) {
PyObject *prob = rpmprob_Wrap(&rpmProblem_Type, rpmpsGetProblem(psi));
PyList_Append(problems, prob);
+ Py_DECREF(prob);
}
rpmpsFreeIterator(psi);
rpmpsFree(ps);