From 6c3d3bc0faf627410c0c09d8be93b985b4e3774c Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 14 Aug 2007 15:34:34 +0000 Subject: r24420: Pure pedantism: the talloc_init could have failed... Guenther (This used to be commit e6415c523234f60da7dcfa4de101e8634dc6927d) --- source3/nsswitch/winbindd_dual.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/nsswitch') diff --git a/source3/nsswitch/winbindd_dual.c b/source3/nsswitch/winbindd_dual.c index 92e5782fa3..8009bee9d4 100644 --- a/source3/nsswitch/winbindd_dual.c +++ b/source3/nsswitch/winbindd_dual.c @@ -758,8 +758,7 @@ static void account_lockout_policy_handler(struct event_context *ctx, } else { result = methods->lockout_policy(child->domain, mem_ctx, &lockout_policy); } - - talloc_destroy(mem_ctx); + TALLOC_FREE(mem_ctx); if (!NT_STATUS_IS_OK(result)) { DEBUG(10,("account_lockout_policy_handler: lockout_policy failed error %s\n", -- cgit