From 3fa69438b9fafc13d522720e188e82455856fc1d Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 12 May 2009 17:47:22 +0200 Subject: Convert response.extra_data.data from malloc to talloc --- source3/winbindd/winbindd.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source3/winbindd/winbindd.c') 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); -- cgit