]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Free parser after test
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 May 2021 13:06:15 +0000 (13:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 4 May 2021 13:06:15 +0000 (13:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/parser.c

index 113c2c97d0f6cbd1d07190e88344e9cd49a34313..383e9db40c8c38c1c37de2ef593cd6bc38fc2ce2 100644 (file)
@@ -154,6 +154,8 @@ static int test_parser_command(const struct test* t) {
        char* value = pakfire_parser_get(parser, NULL, "command");
        ASSERT_STRING_EQUALS(value, "ABC");
 
+       pakfire_parser_unref(parser);
+
        return EXIT_SUCCESS;
 }