summaryrefslogtreecommitdiff
path: root/source3/nsswitch/wb_common.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2001-09-17 04:52:45 +0000
committerSimo Sorce <idra@samba.org>2001-09-17 04:52:45 +0000
commitb50d10c2a313b45bbc195b13a353a20af0ab917a (patch)
tree9da47962670ff5b98c6f34ec085ffae507a4edc6 /source3/nsswitch/wb_common.c
parent1f312492ecf8b3215bddf5c2f2d9fb2cbe2bf098 (diff)
downloadsamba-b50d10c2a313b45bbc195b13a353a20af0ab917a.tar.gz
samba-b50d10c2a313b45bbc195b13a353a20af0ab917a.tar.bz2
samba-b50d10c2a313b45bbc195b13a353a20af0ab917a.zip
move to SAFE_FREE()
(This used to be commit 03dc67788f68c9e01b5a82fdf43f837cb19f4608)
Diffstat (limited to 'source3/nsswitch/wb_common.c')
-rw-r--r--source3/nsswitch/wb_common.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c
index 7fb2bc2cf5..0cfefa6f86 100644
--- a/source3/nsswitch/wb_common.c
+++ b/source3/nsswitch/wb_common.c
@@ -36,7 +36,7 @@ static char *excluded_domain;
*/
void winbind_exclude_domain(const char *domain)
{
- if (excluded_domain) free(excluded_domain);
+ SAFE_FREE(excluded_domain);
excluded_domain = strdup(domain);
}
@@ -311,10 +311,8 @@ void free_response(struct winbindd_response *response)
{
/* Free any allocated extra_data */
- if (response && response->extra_data) {
- free(response->extra_data);
- response->extra_data = NULL;
- }
+ if (response)
+ SAFE_FREE(response->extra_data);
}
/* Handle simple types of requests */