diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/clients/klist/klist.c | 4 | ||||
-rw-r--r-- | src/include/krb5/krb5.hin | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/clients/klist/klist.c b/src/clients/klist/klist.c index 503a1149d..9d8f0a83b 100644 --- a/src/clients/klist/klist.c +++ b/src/clients/klist/klist.c @@ -386,8 +386,8 @@ list_ccache(krb5_ccache cache) 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; } diff --git a/src/include/krb5/krb5.hin b/src/include/krb5/krb5.hin index 4d2864c2a..de314a017 100644 --- a/src/include/krb5/krb5.hin +++ b/src/include/krb5/krb5.hin @@ -2265,6 +2265,8 @@ krb5_cc_get_name(krb5_context context, krb5_ccache cache); * @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 |