]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test-networkd-conf: config_parse_ether_addrs() uses ether_addr_hash_ops_free 37118/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 11 Apr 2025 02:15:21 +0000 (11:15 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 13 Apr 2025 01:04:08 +0000 (10:04 +0900)
Hence, set_free() is enough to free the result.

src/network/test-networkd-conf.c

index 032c2e75dc749077fb89493e6449048337a97793..a3dc42a9ea5a5550a98305e173ffbd50f32ed28e 100644 (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);