From: Michael Tremer Date: Sun, 14 Jan 2018 18:27:15 +0000 (+0100) Subject: libpakfire: Fix refcounting when importing packages from a queue X-Git-Tag: 0.9.28~1285^2~1198 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1ca3f1575fac2e923352a70cef5c2bf5197a13bc;p=pakfire.git libpakfire: Fix refcounting when importing packages from a queue Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/packagelist.c b/src/libpakfire/packagelist.c index 8bcddf894..42cc1777a 100644 --- a/src/libpakfire/packagelist.c +++ b/src/libpakfire/packagelist.c @@ -100,6 +100,8 @@ PAKFIRE_EXPORT PakfirePackageList pakfire_packagelist_from_queue(PakfirePool _po FOR_JOB_SELECT(p, pp, q->elements[i], q->elements[i + 1]) { PakfirePackage pkg = pakfire_package_create(_pool, p); pakfire_packagelist_push(list, pkg); + + pakfire_package_unref(pkg); } }