From: Kay Sievers Date: Wed, 16 Jul 2014 21:50:45 +0000 (+0200) Subject: resolved: do not free() sd_dhcp_lease_get_dns() results X-Git-Tag: v216~557 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=e1bbf3d12f28b8e3d4394f2b257e1b7aea3d10fc resolved: do not free() sd_dhcp_lease_get_dns() results --- diff --git a/src/resolve/resolved-link.c b/src/resolve/resolved-link.c index 27477de7b..9c886a26b 100644 --- a/src/resolve/resolved-link.c +++ b/src/resolve/resolved-link.c @@ -96,7 +96,7 @@ int link_update_rtnl(Link *l, sd_rtnl_message *m) { static int update_dhcp_dns_servers(Link *l) { _cleanup_dhcp_lease_unref_ sd_dhcp_lease *lease = NULL; - _cleanup_free_ struct in_addr *nameservers = NULL; + struct in_addr *nameservers = NULL; DnsServer *s, *nx; unsigned i; size_t n;