From: Michael Tremer Date: Tue, 27 Apr 2021 18:40:24 +0000 (+0000) Subject: tests: Use pakfire_config_unref instead of pakfire_config_free X-Git-Tag: 0.9.28~1285^2~206 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c000e645a06367953a2be56abc33c3284ff73f07;p=pakfire.git tests: Use pakfire_config_unref instead of pakfire_config_free Signed-off-by: Michael Tremer --- diff --git a/tests/libpakfire/config.c b/tests/libpakfire/config.c index 903a090ba..fa8c8f98e 100644 --- a/tests/libpakfire/config.c +++ b/tests/libpakfire/config.c @@ -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);