krb5_free_cred_contents() to cleanup memory leak.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15112
dc483132-0cff-0310-8789-
dd5450dbe970
+2003-01-12 Ezra Peisach <epeisach@bu.edu>
+
+ * kdc5_hammer.c (verify_cs_pair): Use krb5_free_creds() instead of
+ krb5_free_cred_contents() to cleanup memory leak.
+
2002-08-29 Ken Raeburn <raeburn@mit.edu>
* Makefile.in: Revert $(S)=>/ change, for Windows support.
{
krb5_error_code retval;
krb5_creds creds;
- krb5_creds * credsp;
+ krb5_creds * credsp = NULL;
krb5_ticket * ticket = NULL;
krb5_keyblock * keyblock = NULL;
krb5_auth_context auth_context = NULL;
cleanup_rdata:
krb5_free_data_contents(context, &request_data);
- krb5_free_cred_contents(context, credsp);
+ if(credsp ) krb5_free_creds(context, credsp);
return retval;
}