lib/krb5: acc_resolve_2 leak if ccErrCacheNotFound
Fix the possible leak of 's' allocated by asprintf()
When squashing the changes reference "this fixes an issue introduced by 7bf4d76
("krb5: Improve cccol sub naming; add gss_store_cred_into2()")" in the commit message.
This commit is contained in:
@@ -560,6 +560,7 @@ acc_resolve_2(krb5_context context, krb5_ccache *id, const char *res, const char
|
||||
if (error == ccErrCCacheNotFound) {
|
||||
a->ccache = NULL;
|
||||
a->cache_name = NULL;
|
||||
free(s);
|
||||
return 0;
|
||||
}
|
||||
if (error == ccNoError)
|
||||
|
Reference in New Issue
Block a user