summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/interface.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 4a8a154edb..79c62a7ae7 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -496,15 +496,7 @@ void load_interfaces(void)
const char **ptr = lp_interfaces();
int i;
- SAFE_FREE(probed_ifaces);
-
- /* dump the current interfaces if any */
- while (local_interfaces) {
- struct interface *iface = local_interfaces;
- DLIST_REMOVE(local_interfaces, local_interfaces);
- SAFE_FREE(iface->name);
- SAFE_FREE(iface);
- }
+ gfree_interfaces();
/* Probe the kernel for interfaces */
total_probed = get_interfaces(talloc_tos(), &ifaces);