From 19f4229fff0f0e350d0eb6e91f674c48c744d214 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 24 May 2010 10:11:23 +1000 Subject: [PATCH] s3:winbind Make state->mem_ctx a talloc child of state This way everything is destoryed at the conclusion of the connection correctly. Andrew Bartlett Signed-off-by: Stefan Metzmacher --- source3/winbindd/winbindd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index c899360a612..1cb4e216595 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -574,7 +574,7 @@ static void process_request(struct winbindd_cli_state *state) struct winbindd_dispatch_table *table = dispatch_table; struct winbindd_async_dispatch_table *atable; - state->mem_ctx = talloc_init("winbind request"); + state->mem_ctx = talloc_named(state, 0, "winbind request"); if (state->mem_ctx == NULL) return; -- 2.11.4.GIT