summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
Diffstat (limited to 'source4/auth/gensec')
-rw-r--r--source4/auth/gensec/gensec_gssapi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/auth/gensec/gensec_gssapi.c b/source4/auth/gensec/gensec_gssapi.c
index c90faacf02..e576d8b7c9 100644
--- a/source4/auth/gensec/gensec_gssapi.c
+++ b/source4/auth/gensec/gensec_gssapi.c
@@ -791,6 +791,7 @@ static NTSTATUS gensec_gssapi_session_info(struct gensec_security *gensec_securi
&name_token,
NULL);
if (maj_stat) {
+ talloc_free(mem_ctx);
return NT_STATUS_FOOBAR;
}
@@ -909,6 +910,7 @@ static NTSTATUS gensec_gssapi_session_info(struct gensec_security *gensec_securi
gensec_gssapi_state->delegated_cred_handle = GSS_C_NO_CREDENTIAL;
}
talloc_steal(gensec_gssapi_state, session_info);
+ talloc_free(mem_ctx);
*_session_info = session_info;
return NT_STATUS_OK;