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:
parent
1cf4c2fc42
commit
fadc825c5b
src/network
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue