diff options
author | Hans Dedecker <dedeckeh@gmail.com> | 2016-12-28 23:23:55 +0100 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2016-12-28 23:54:08 +0100 |
commit | ec833f4381607dda4fd73b8aef842c778300176a (patch) | |
tree | 9ae013ae6b9bb6ebc018181a00dddcaf6f814e66 | |
parent | 1d55edbf1c90568ad37ff394b548e7143c4e0e7b (diff) |
dhcpv6-ia: use free_dhcpv6_assignment where needed
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r-- | src/dhcpv6-ia.c | 6 |
1 files changed, 2 insertions, 4 deletions
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; |