From: Stefan Metzmacher Date: Sat, 25 Dec 2004 14:06:55 +0000 (+0000) Subject: r4360: destroy the gensec context X-Git-Tag: samba-4.0.0alpha6~801^3~12228 X-Git-Url: http://git.samba.org/?p=samba.git;a=commitdiff_plain;h=799b5764d1452c7ec15c8b74b33c83cb2db4702b r4360: destroy the gensec context metze (This used to be commit a25770983b34bac5bd7dcce69241716386dc8509) --- diff --git a/source4/librpc/rpc/dcerpc_auth.c b/source4/librpc/rpc/dcerpc_auth.c index 1c5556ccee3..36e4ba6eea1 100644 --- a/source4/librpc/rpc/dcerpc_auth.c +++ b/source4/librpc/rpc/dcerpc_auth.c @@ -199,6 +199,7 @@ done: talloc_destroy(mem_ctx); if (!NT_STATUS_IS_OK(status)) { + talloc_free(p->security_state.generic_state); ZERO_STRUCT(p->security_state); } else { /* Authenticated connections use the generic session key */