summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2014-05-06 13:47:28 +0200
committerAndrew Bartlett <abartlet@samba.org>2014-08-08 06:02:35 +0200
commitd487bce3abd9699d14f48e6cc11a1a98cb19632b (patch)
tree7efa23c9a42761dae540058a9d437f176105cb2b /source4/auth
parent9fed7ed00eb74a82e822dca2c9f267fe0c47069f (diff)
downloadsamba-d487bce3abd9699d14f48e6cc11a1a98cb19632b.tar.gz
s4-gensec_krb5: fix memleak in gensec_krb5_session_info().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/gensec/gensec_krb5.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/auth/gensec/gensec_krb5.c b/source4/auth/gensec/gensec_krb5.c
index 3cbe8c4c72d..237a2633c92 100644
--- a/source4/auth/gensec/gensec_krb5.c
+++ b/source4/auth/gensec/gensec_krb5.c
@@ -719,6 +719,7 @@ static NTSTATUS gensec_krb5_session_info(struct gensec_security *gensec_security
} else {
/* Found pac */
pac_blob = data_blob_talloc(tmp_ctx, pac_data.data, pac_data.length);
+ kerberos_free_data_contents(context, &pac_data);
if (!pac_blob.data) {
free(principal_string);
krb5_free_principal(context, client_principal);