diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-05-18 23:23:17 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-05-18 23:23:17 +0200 |
commit | cab5b05903096e1c9cf5575ccc73f89d15c8db69 (patch) | |
tree | 0900fc3bb29907617f784137ae91fb39948651ac /src/resolve/resolved-link.c | |
parent | 6b7d2e9ea4cdb4cfa1512d37548a1a967623d7f2 (diff) |
resolved: fix crash when shutting down
Reported by Cristian RodrÃguez
http://lists.freedesktop.org/archives/systemd-devel/2015-May/031626.html
Diffstat (limited to 'src/resolve/resolved-link.c')
-rw-r--r-- | src/resolve/resolved-link.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c index f94e4bb6f0..27d9129e00 100644 --- a/src/resolve/resolved-link.c +++ b/src/resolve/resolved-link.c @@ -68,13 +68,13 @@ Link *link_free(Link *l) { if (l->manager) hashmap_remove(l->manager->links, INT_TO_PTR(l->ifindex)); + while (l->dns_servers) + dns_server_free(l->dns_servers); + dns_scope_free(l->unicast_scope); dns_scope_free(l->llmnr_ipv4_scope); dns_scope_free(l->llmnr_ipv6_scope); - while (l->dns_servers) - dns_server_free(l->dns_servers); - free(l); return NULL; } |