summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-11-18 15:19:09 +0100
committerMichael Adam <obnox@samba.org>2009-11-18 22:19:18 +0100
commitaea3a8f50131744f8393d0179cd04a1b97982028 (patch)
tree1f8e078377d6bfda9b5af15cbf1b788b03ec9851 /source3
parent6178c17e09a5aed968dac49b16ed0b59750aef1c (diff)
downloadsamba-aea3a8f50131744f8393d0179cd04a1b97982028.tar.gz
samba-aea3a8f50131744f8393d0179cd04a1b97982028.tar.bz2
samba-aea3a8f50131744f8393d0179cd04a1b97982028.zip
s3:load_interfaces(): use function gfree_interfaces() that we have.
To reduce code duplication. Michael
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);