krb5_free_creds - Free a krb5_creds structure.

void krb5_free_creds(krb5_context context, krb5_creds *val)
param

[in] context - Library context

[in] val - Credential structure to be freed.

This function frees the contents of val and the structure itself.