summaryrefslogtreecommitdiff
path: root/source4/auth/gensec
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2006-01-31 02:01:52 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:51:38 -0500
commit7e9868c74fe5a1f6e7445a64a33a1cb408545bf7 (patch)
tree7e4280f0235a389547bedc19e091a02267178307 /source4/auth/gensec
parent67e78aabd6ea04cd8545503171386ac3a203a448 (diff)
downloadsamba-7e9868c74fe5a1f6e7445a64a33a1cb408545bf7.tar.gz
samba-7e9868c74fe5a1f6e7445a64a33a1cb408545bf7.tar.bz2
samba-7e9868c74fe5a1f6e7445a64a33a1cb408545bf7.zip
r13250: I missed a couple of talloc_free()'s
Andrew Bartlett (This used to be commit 3570a62876dcd656b328bf8c2c1be617ae9a8fd7)
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;