summaryrefslogtreecommitdiffstats
path: root/source/lib/interface.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-12-26 08:32:30 +0000
committerJeremy Allison <jra@samba.org>2001-12-26 08:32:30 +0000
commit26e4c4099c61c7ba9f2153e56061bea9882553d9 (patch)
treeb68969a82c21508f28f511fc7263e5242351e47c /source/lib/interface.c
parent5e3491784277dd90180ef199d2fa258614958545 (diff)
downloadsamba-26e4c4099c61c7ba9f2153e56061bea9882553d9.tar.gz
samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.tar.xz
samba-26e4c4099c61c7ba9f2153e56061bea9882553d9.zip
Get religion on using SAFE_FREE.
Jeremy.
Diffstat (limited to 'source/lib/interface.c')
-rw-r--r--source/lib/interface.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/source/lib/interface.c b/source/lib/interface.c
index d1f9ed67d71..3a269294ed9 100644
--- a/source/lib/interface.c
+++ b/source/lib/interface.c
@@ -175,17 +175,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 */