]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: fix memleak
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 Apr 2025 20:28:22 +0000 (05:28 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 15 Apr 2025 22:34:49 +0000 (23:34 +0100)
Follow-up for 5c274555c3f6d5e188cb7e3e0adafa9ae55d5f49.

src/resolve/resolved-dns-trust-anchor.c

index 962e159a12be264034f686dc2860c7e7f5ebe5f7..18059379a17eeb19b407e8f616479a5f83bc952d 100644 (file)
@@ -415,7 +415,7 @@ static int dns_trust_anchor_load_negative(DnsTrustAnchor *d, const char *path, u
                 return -EINVAL;
         }
 
-        r = set_ensure_consume(&d->negative_by_name, &dns_name_hash_ops, TAKE_PTR(domain));
+        r = set_ensure_consume(&d->negative_by_name, &dns_name_hash_ops_free, TAKE_PTR(domain));
         if (r < 0)
                 return log_oom();