MIT Kerberos Documentation

krb5_free_data_contents - Free the contents of a krb5_data structure and zero the data field.

void krb5_free_data_contents(krb5_context context, krb5_data * val)
param:

[in] context - Library context

[in] val - Data structure to free contents of

This function frees the contents of val , but not the structure itself.