From 8854e20f6ffde0ff3813cd98bca080ce9a4b782f Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Sun, 13 Jul 1997 00:46:00 +0000 Subject: [PATCH] Free a lot of fields. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2221 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/auth_context.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lib/krb5/auth_context.c b/lib/krb5/auth_context.c index 8b967562c..cacc0ebd2 100644 --- a/lib/krb5/auth_context.c +++ b/lib/krb5/auth_context.c @@ -28,7 +28,16 @@ krb5_error_code krb5_auth_con_free(krb5_context context, krb5_auth_context auth_context) { - free (auth_context->authenticator); + krb5_free_authenticator(context, &auth_context->authenticator); + if(auth_context->local_address){ + free_HostAddress(auth_context->local_address); + free(auth_context->local_address); + } + if(auth_context->remote_address){ + free_HostAddress(auth_context->remote_address); + free(auth_context->remote_address); + } + free_EncryptionKey(&auth_context->key); free (auth_context); return 0; }