]> git.ipfire.org Git - pakfire.git/commitdiff
cgroups: The static analyzer does not seem to understand how return things
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 14 Dec 2024 15:55:47 +0000 (15:55 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 14 Dec 2024 15:55:47 +0000 (15:55 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/cgroup.c

index 875ed60d4f22fcf8047abae957e9ed871e383979..296e75a8820c58d86a2c8b3b3e19f17eb553d595 100644 (file)
@@ -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)