summaryrefslogtreecommitdiff
path: root/source3/winbindd/winbindd.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-05-12 17:47:22 +0200
committerVolker Lendecke <vl@samba.org>2009-05-12 18:02:00 +0200
commit3fa69438b9fafc13d522720e188e82455856fc1d (patch)
tree785824d4d86e70053899ebc0bdda16cfab7befad /source3/winbindd/winbindd.c
parentc9efd454c5ffe0126bb21fdaadd421d71c38e2f7 (diff)
downloadsamba-3fa69438b9fafc13d522720e188e82455856fc1d.tar.gz
samba-3fa69438b9fafc13d522720e188e82455856fc1d.tar.bz2
samba-3fa69438b9fafc13d522720e188e82455856fc1d.zip
Convert response.extra_data.data from malloc to talloc
Diffstat (limited to 'source3/winbindd/winbindd.c')
-rw-r--r--source3/winbindd/winbindd.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c
index bcfe52891a..fb7eda92c4 100644
--- a/source3/winbindd/winbindd.c
+++ b/source3/winbindd/winbindd.c
@@ -508,11 +508,6 @@ static void process_request(struct winbindd_cli_state *state)
{
struct winbindd_dispatch_table *table = dispatch_table;
- /* 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.data);
-
ZERO_STRUCT(state->response);
state->response.result = WINBINDD_PENDING;
@@ -680,8 +675,6 @@ static void response_extra_sent(void *private_data, bool success)
return;
}
- SAFE_FREE(state->response.extra_data.data);
-
setup_async_read(&state->fd_event, &state->request, sizeof(uint32),
request_len_recv, state);
}
@@ -886,11 +879,6 @@ static void remove_client(struct winbindd_cli_state *state)
free_getent_state(state->getpwent_state);
free_getent_state(state->getgrent_state);
- /* We may have some extra data that was not freed if the client was
- killed unexpectedly */
-
- SAFE_FREE(state->response.extra_data.data);
-
TALLOC_FREE(state->mem_ctx);
remove_fd_event(&state->fd_event);