summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-05 19:42:34 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-05 20:00:59 +0100
commit00f0a16ab4576535021456f8955446d3ae8f0b5f (patch)
tree407827440ca6cf295472bccf516db3f74aae28a5
parent1ed8c0fbb4cc51413f3a6025233f41c19f154bc1 (diff)
resolved: properly release all DnsServers that belong to a link
-rw-r--r--src/resolve/resolved-link.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c
index a1f28633ba..9ebaf137d8 100644
--- a/src/resolve/resolved-link.c
+++ b/src/resolve/resolved-link.c
@@ -65,7 +65,7 @@ Link *link_free(Link *l) {
if (!l)
return NULL;
- dns_server_unlink_marked(l->dns_servers);
+ dns_server_unlink_all(l->dns_servers);
dns_search_domain_unlink_all(l->search_domains);
while (l->addresses)