Free a lot of fields.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2221 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1997-07-13 00:46:00 +00:00
parent c05d018a81
commit 8854e20f6f

View File

@@ -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;
}