free more

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@2569 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-07-23 23:54:37 +00:00
parent 012dd50832
commit d7928440a3
7 changed files with 53 additions and 24 deletions

View File

@@ -66,6 +66,7 @@ krb5_build_authenticator (krb5_context context,
auth->subkey = NULL;
#else
krb5_generate_subkey (context, &cred->session, &auth->subkey);
free_EncryptionKey (&auth_context->local_subkey);
copy_EncryptionKey (auth->subkey,
&auth_context->local_subkey);
#endif
@@ -98,7 +99,7 @@ krb5_build_authenticator (krb5_context context,
if (auth_result)
*auth_result = auth;
else {
free (auth->crealm);
free_Authenticator (auth);
free (auth);
}
return ret;