diff options
Diffstat (limited to 'source3/nsswitch/wb_common.c')
-rw-r--r-- | source3/nsswitch/wb_common.c | 8 |
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 */ |