resolve: fix memleak

Follow-up for 5c274555c3.
This commit is contained in:
Yu Watanabe
2025-04-16 05:28:22 +09:00
committed by Luca Boccassi
parent 86cfbfae97
commit a0fa3f1616

View 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();