(_kadm5_c_get_cred_cache): Free client principal in case of error.
Coverity NetBSD CID#1908 git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@17028 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -270,6 +270,8 @@ _kadm5_c_get_cred_cache(krb5_context context,
|
||||
name, "admin", NULL);
|
||||
if(ret != 0) {
|
||||
krb5_free_principal(context, default_client);
|
||||
if (client)
|
||||
krb5_free_principal(context, client);
|
||||
krb5_cc_close(context, id);
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user