From: Michael Tremer Date: Sat, 14 Dec 2024 15:55:47 +0000 (+0000) Subject: cgroups: The static analyzer does not seem to understand how return things X-Git-Tag: 0.9.30~702 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8480635a2fb9455084bd936712e98bf397dceb2a;p=pakfire.git cgroups: The static analyzer does not seem to understand how return things Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/cgroup.c b/src/libpakfire/cgroup.c index 875ed60d4..296e75a88 100644 --- a/src/libpakfire/cgroup.c +++ b/src/libpakfire/cgroup.c @@ -414,7 +414,9 @@ static int pakfire_cgroup_open(struct pakfire_cgroup** cgroup, DEBUG(c->ctx, "Created cgroup %s\n", pakfire_cgroup_path(c)); // Return the pointer - *cgroup = pakfire_cgroup_ref(c); + *cgroup = c; + + return 0; ERROR: if (c)