From: Michael Tremer Date: Thu, 17 Oct 2024 17:36:42 +0000 (+0000) Subject: pakfire: Fix incorrect reference counting X-Git-Tag: 0.9.30~1031 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=14132fe2de9a248f9c89921e59ee201855c4ff41;p=pakfire.git pakfire: Fix incorrect reference counting Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/pakfire.c b/src/libpakfire/pakfire.c index 77985ba16..4b004bd4a 100644 --- a/src/libpakfire/pakfire.c +++ b/src/libpakfire/pakfire.c @@ -958,8 +958,6 @@ PAKFIRE_EXPORT int pakfire_create(struct pakfire** pakfire, struct pakfire_ctx* // Return the pointer *pakfire = pakfire_ref(p); - return 0; - ERROR: if (p) pakfire_unref(p);