From: Hans Dedecker Date: Wed, 28 Dec 2016 22:23:55 +0000 (+0100) Subject: dhcpv6-ia: use free_dhcpv6_assignment where needed X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ec833f4381607dda4fd73b8aef842c778300176a;p=oweals%2Fodhcpd.git dhcpv6-ia: use free_dhcpv6_assignment where needed Signed-off-by: Hans Dedecker --- diff --git a/src/dhcpv6-ia.c b/src/dhcpv6-ia.c index 35c6ae3..98fb460 100644 --- a/src/dhcpv6-ia.c +++ b/src/dhcpv6-ia.c @@ -119,10 +119,8 @@ int setup_dhcpv6_ia_interface(struct interface *iface, bool enable) free(a->hostname); a->hostname = strdup(lease->hostname); } - } else { - free(a->hostname); - free(a); - } + } else + free_dhcpv6_assignment(a); } } return 0;