summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHans Dedecker <dedeckeh@gmail.com>2016-12-28 23:23:55 +0100
committerHans Dedecker <dedeckeh@gmail.com>2016-12-28 23:54:08 +0100
commitec833f4381607dda4fd73b8aef842c778300176a (patch)
tree9ae013ae6b9bb6ebc018181a00dddcaf6f814e66
parent1d55edbf1c90568ad37ff394b548e7143c4e0e7b (diff)
dhcpv6-ia: use free_dhcpv6_assignment where needed
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
-rw-r--r--src/dhcpv6-ia.c6
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;