From: Michael Tremer Date: Fri, 24 Mar 2023 16:17:12 +0000 (+0000) Subject: tests: archive: Free file handle at the end X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=429b6de39bef7cc73e08e3a79186b9ede29978cf;p=people%2Fstevee%2Fpakfire.git tests: archive: Free file handle at the end Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/archive.c b/tests/libpakfire/archive.c index 79e7dcb4..049408cb 100644 --- a/tests/libpakfire/archive.c +++ b/tests/libpakfire/archive.c @@ -125,6 +125,8 @@ static int test_read(const struct test* t) { FAIL: if (archive) pakfire_archive_unref(archive); + if (f) + fclose(f); return r; }