The branch, master has been updated
via aea3a8f... s3:load_interfaces(): use function gfree_interfaces()
that we have.
from 6178c17... Added control copying for message types other than
ldb_search.
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit aea3a8f50131744f8393d0179cd04a1b97982028
Author: Michael Adam <[email protected]>
Date: Wed Nov 18 15:19:09 2009 +0100
s3:load_interfaces(): use function gfree_interfaces() that we have.
To reduce code duplication.
Michael
-----------------------------------------------------------------------
Summary of changes:
source3/lib/interface.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 4a8a154..79c62a7 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);
--
Samba Shared Repository