From f8fb62ff1bf5991826253fbf62a2afa5e64c693b Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Tue, 16 Jul 2013 15:36:16 +0200 Subject: [PATCH] remember to free auth_data --- lib/krb5/auth_context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/krb5/auth_context.c b/lib/krb5/auth_context.c index 740a9a63a..7a20eb51e 100644 --- a/lib/krb5/auth_context.c +++ b/lib/krb5/auth_context.c @@ -98,6 +98,10 @@ krb5_auth_con_free(krb5_context context, krb5_free_keyblock(context, auth_context->keyblock); krb5_free_keyblock(context, auth_context->remote_subkey); krb5_free_keyblock(context, auth_context->local_subkey); + if (auth_context->auth_data) { + free_AuthorizationData(auth_context->auth_data); + free(auth_context->auth_data); + } free (auth_context); } return 0;