network: dhcp6 - fix mem leak
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 15 Nov 2015 22:08:22 +0000 (23:08 +0100)
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Sun, 15 Nov 2015 22:10:28 +0000 (23:10 +0100)
from 7a695d8e
CID#1338679

src/network/networkd-dhcp6.c

index d407b31..f83ff54 100644 (file)
@@ -221,7 +221,7 @@ int dhcp6_configure(Link *link) {
 
         r = sd_dhcp6_client_set_information_request(client, true);
         if (r < 0)
-                return r;
+                goto error;
 
         r = sd_dhcp6_client_set_mac(client,
                                     (const uint8_t *) &link->mac,