(krb5_copy_creds_contents): only free the contents if we fail.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4000 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-11-16 01:52:12 +00:00
parent 9c0f046872
commit 51454b519e

View File

@@ -97,7 +97,7 @@ krb5_copy_creds_contents (krb5_context context,
return 0;
fail:
krb5_free_creds (context, c);
krb5_free_creds_contents (context, c);
return ret;
}