diff options
author | Simo Sorce <idra@samba.org> | 2001-09-17 02:19:44 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2001-09-17 02:19:44 +0000 |
commit | 60e907b7e8e1c008463a88ed2b076344278986ef (patch) | |
tree | 4ee87af16f736e14a0284f0ef1433b6d833a1380 /source/lib/interface.c | |
parent | 89833bbbd8508dcdca70dff2c94e1d8f22535f1f (diff) | |
download | samba-60e907b7e8e1c008463a88ed2b076344278986ef.tar.gz |
move to SAFE_FREE()
Diffstat (limited to 'source/lib/interface.c')
-rw-r--r-- | source/lib/interface.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/lib/interface.c b/source/lib/interface.c index c89c22aa081..c68b405f7c7 100644 --- a/source/lib/interface.c +++ b/source/lib/interface.c @@ -178,17 +178,14 @@ void load_interfaces(void) allones_ip = *interpret_addr2("255.255.255.255"); loopback_ip = *interpret_addr2("127.0.0.1"); - if (probed_ifaces) { - free(probed_ifaces); - probed_ifaces = NULL; - } + SAFE_FREE(probed_ifaces); /* dump the current interfaces if any */ while (local_interfaces) { struct interface *iface = local_interfaces; DLIST_REMOVE(local_interfaces, local_interfaces); ZERO_STRUCTPN(iface); - free(iface); + SAFE_FREE(iface); } /* probe the kernel for interfaces */ |