From 6e238fe5b458fc6b9184144fa124f497c81eec8d Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 11 Sep 2007 10:21:34 +0000 Subject: [PATCH] r25074: as all requests in the winbindd child are sync, we can use talloc_tos() metze --- source/nsswitch/winbindd_dual.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/nsswitch/winbindd_dual.c b/source/nsswitch/winbindd_dual.c index 05676682f9a..67cf6abc2b7 100644 --- a/source/nsswitch/winbindd_dual.c +++ b/source/nsswitch/winbindd_dual.c @@ -468,9 +468,8 @@ static void child_process_request(struct winbindd_domain *domain, state->response.result = WINBINDD_ERROR; state->response.length = sizeof(struct winbindd_response); - state->mem_ctx = talloc_init("winbind request"); - if (state->mem_ctx == NULL) - return; + /* as all requests in the child are sync, we can use talloc_tos() */ + state->mem_ctx = talloc_tos(); /* Process command */ @@ -488,8 +487,6 @@ static void child_process_request(struct winbindd_domain *domain, (int)state->request.cmd )); state->response.result = WINBINDD_ERROR; } - - talloc_destroy(state->mem_ctx); } void setup_domain_child(struct winbindd_domain *domain, -- 2.11.4.GIT