(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:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user