summaryrefslogtreecommitdiff
path: root/source3/nsswitch/winbindd.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/winbindd.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/winbindd.c')
-rw-r--r--source3/nsswitch/winbindd.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/nsswitch/winbindd.c b/source3/nsswitch/winbindd.c
index 713cef312f..13b8478257 100644
--- a/source3/nsswitch/winbindd.c
+++ b/source3/nsswitch/winbindd.c
@@ -281,7 +281,7 @@ static void process_request(struct winbindd_cli_state *state)
/* Free response data - we may be interrupted and receive another
command before being able to send this data off. */
- safe_free(state->response.extra_data);
+ SAFE_FREE(state->response.extra_data);
ZERO_STRUCT(state->response);
@@ -363,12 +363,12 @@ static void remove_client(struct winbindd_cli_state *state)
/* We may have some extra data that was not freed if the
client was killed unexpectedly */
- safe_free(state->response.extra_data);
+ SAFE_FREE(state->response.extra_data);
/* Remove from list and free */
DLIST_REMOVE(client_list, state);
- free(state);
+ SAFE_FREE(state);
num_clients--;
}
}
@@ -454,8 +454,7 @@ static void client_write(struct winbindd_cli_state *state)
state->finished = True;
- safe_free(state->response.extra_data);
- state->response.extra_data = NULL;
+ SAFE_FREE(state->response.extra_data);
return;
}
@@ -472,8 +471,7 @@ static void client_write(struct winbindd_cli_state *state)
if (state->write_extra_data) {
- safe_free(state->response.extra_data);
- state->response.extra_data = NULL;
+ SAFE_FREE(state->response.extra_data);
state->write_extra_data = False;