]> git.ipfire.org Git - pakfire.git/commitdiff
tests: archive: Free file handle at the end
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Mar 2023 16:17:12 +0000 (16:17 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 24 Mar 2023 16:17:12 +0000 (16:17 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/archive.c

index 79e7dcb4ac9bd59606e82b11ab5c9a4de9013bee..049408cbcb3782953995fbbfe3e11069182281cc 100644 (file)
@@ -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;
 }