s3:winbind Make state->mem_ctx a talloc child of state
authorAndrew Bartlett <abartlet@samba.org>
Mon, 24 May 2010 00:11:23 +0000 (10:11 +1000)
committerStefan Metzmacher <metze@samba.org>
Mon, 31 May 2010 19:36:55 +0000 (21:36 +0200)
This way everything is destoryed at the conclusion of
the connection correctly.

Andrew Bartlett

Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/winbindd/winbindd.c

index c899360a6128628e6bf80740e690f3406fc64a8f..1cb4e216595f9a03eececb0b6ed9ff99b3a38904 100644 (file)
@@ -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;