mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s3:load_interfaces(): use function gfree_interfaces() that we have.
To reduce code duplication. Michael
This commit is contained in:
parent
6178c17e09
commit
aea3a8f501
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user