(_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:
Love Hörnquist Åstrand
2006-04-10 07:50:22 +00:00
parent 30627ab04b
commit 86ee0aa773

View File

@@ -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;
}