test-networkd-conf: config_parse_ether_addrs() uses ether_addr_hash_ops_free

Hence, set_free() is enough to free the result.
This commit is contained in:
Yu Watanabe
2025-04-13 10:04:08 +09:00
parent 1cf4c2fc42
commit fadc825c5b
+1 -1
View File
@@ -58,7 +58,7 @@ static void test_config_parse_ether_addr_one(const char *rvalue, const struct et
}
static void test_config_parse_ether_addrs_one(const char *rvalue, const struct ether_addr* list, size_t n) {
_cleanup_set_free_free_ Set *s = NULL;
_cleanup_set_free_ Set *s = NULL;
ASSERT_OK(config_parse_ether_addrs("network", "filename", 1, "section", 1, "lvalue", 0, rvalue, &s, NULL));
ASSERT_EQ(set_size(s), n);