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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user