From: Jeremy Allison Date: Tue, 8 Oct 2013 22:01:38 +0000 (-0700) Subject: Fix bug #10187 - Missing talloc_free can leak stackframe in error path. X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=63f370bdbad94d6aba7a4783d4238fcfc524b055 Fix bug #10187 - Missing talloc_free can leak stackframe in error path. Fix error path. Signed-off-by: Jeremy Allison Reviewed-by: David Disseldorp Autobuild-User(master): David Disseldorp Autobuild-Date(master): Wed Oct 9 03:50:56 CEST 2013 on sn-devel-104 --- diff --git a/source3/winbindd/winbindd_msrpc.c b/source3/winbindd/winbindd_msrpc.c index b14a4f87c38..b426884e896 100644 --- a/source3/winbindd/winbindd_msrpc.c +++ b/source3/winbindd/winbindd_msrpc.c @@ -944,8 +944,9 @@ static NTSTATUS msrpc_trusted_domains(struct winbindd_domain *domain, } status = cm_connect_lsa(domain, tmp_ctx, &lsa_pipe, &lsa_policy); - if (!NT_STATUS_IS_OK(status)) - return status; + if (!NT_STATUS_IS_OK(status)) { + goto done; + } status = rpc_trusted_domains(tmp_ctx, lsa_pipe,