MIT Kerberos Documentation

krb5_k_free_key - Decrement the reference count on a key and free it if it hits zero.

void krb5_k_free_key(krb5_context context, krb5_key key)
param:

context

key