chiark / gitweb /
resolved: do not free() sd_dhcp_lease_get_dns() results
authorKay Sievers <kay@vrfy.org>
Wed, 16 Jul 2014 21:50:45 +0000 (23:50 +0200)
committerKay Sievers <kay@vrfy.org>
Wed, 16 Jul 2014 21:50:45 +0000 (23:50 +0200)
src/resolve/resolved-link.c

index 27477de..9c886a2 100644 (file)
@@ -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;