]> git.ipfire.org Git - people/ric9/pakfire.git/commitdiff
dist: Free the context after reading the makefile
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Jan 2025 11:56:37 +0000 (11:56 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 11 Jan 2025 11:56:37 +0000 (11:56 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/pakfire/dist.c

index d918227218d832dded347f47bab691cea2c50c7d..0397958c6b79445785b6fdd825bc26d6b3b09e2c 100644 (file)
@@ -211,6 +211,9 @@ int pakfire_read_makefile(struct pakfire_parser** parser, struct pakfire* pakfir
                goto ERROR;
        }
 
+       if (ctx)
+               pakfire_ctx_unref(ctx);
+
        return 0;
 
 ERROR: