Also, in klist, use the appropriate libkrb5 free functions for
krb5_cc_get_full_name and krb5_unparse_name_results. Reported by
Kevin Wasserman.
ticket: 7179
status = 0;
cleanup:
krb5_free_principal(kcontext, princ);
- free(princname);
- free(ccname);
+ krb5_free_unparsed_name(kcontext, princname);
+ krb5_free_string(kcontext, ccname);
return status;
}
* @param [in] cache Credential cache handle
* @param [out] fullname_out Full name of cache
*
+ * Use krb5_free_string() to free @a fullname_out when it is no longer needed.
+ *
* @version First introduced in 1.10
*/
krb5_error_code KRB5_CALLCONV