From: Michael Tremer Date: Sat, 11 Jan 2025 11:56:37 +0000 (+0000) Subject: dist: Free the context after reading the makefile X-Git-Tag: 0.9.30~468 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d0e23eeb50a073154ef66211837e4abe782dc3c2;p=pakfire.git dist: Free the context after reading the makefile Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/dist.c b/src/pakfire/dist.c index d91822721..0397958c6 100644 --- a/src/pakfire/dist.c +++ b/src/pakfire/dist.c @@ -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: