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_user.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'source3/winbindd/winbindd_user.c') diff --git a/source3/winbindd/winbindd_user.c b/source3/winbindd/winbindd_user.c index 50aea4e0cb..f990ca88e7 100644 --- a/source3/winbindd/winbindd_user.c +++ b/source3/winbindd/winbindd_user.c @@ -779,16 +779,14 @@ void winbindd_getpwent(struct winbindd_cli_state *state) return; } - user_list = SMB_MALLOC_ARRAY(struct winbindd_pw, num_users); + user_list = talloc_zero_array(state->mem_ctx, struct winbindd_pw, + num_users); if (!user_list) { request_error(state); return; } - /* will be freed by process_request() */ state->response.extra_data.data = user_list; - memset(user_list, 0, num_users * sizeof(struct winbindd_pw)); - if (!state->getpwent_initialized) winbindd_setpwent_internal(state); -- cgit