MIT Kerberos Documentation

krb5_free_keyblock - Free a krb5_keyblock structure.

void krb5_free_keyblock(krb5_context context, krb5_keyblock * val)
param:

[in] context - Library context

[in] val - Keyblock to be freed

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