]> git.ipfire.org Git - pakfire.git/commitdiff
tests: Use pakfire_config_unref instead of pakfire_config_free
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Apr 2021 18:40:24 +0000 (18:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Apr 2021 18:40:24 +0000 (18:40 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
tests/libpakfire/config.c

index 903a090ba579f6a941ec78ae876027a9c50322d1..fa8c8f98ec754d9a8afb29037151b749260dcde5 100644 (file)
@@ -63,12 +63,11 @@ static int test_get_and_set(const struct test* t) {
        ASSERT(pakfire_config_has_section(config, "section1"));
        ASSERT(!pakfire_config_has_section(config, "section3"));
 
-       pakfire_config_free(config);
+       pakfire_config_unref(config);
 
        return EXIT_SUCCESS;
 }
 
-
 static int test_parse(const struct test* t) {
        char* TEST_INPUT =
                "key1 = value1\n"
@@ -111,7 +110,7 @@ static int test_parse(const struct test* t) {
        ASSERT_STRING_EQUALS(sections[1], "section2");
        ASSERT_NULL(sections[2]);
 
-       pakfire_config_free(config);
+       pakfire_config_unref(config);
 
        fclose(f);