Try to leak less memory in the failure case.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20198 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -181,6 +181,11 @@ _gsskrb5_import_cred(OM_uint32 *minor_status,
|
|||||||
return GSS_S_COMPLETE;
|
return GSS_S_COMPLETE;
|
||||||
|
|
||||||
out:
|
out:
|
||||||
|
gss_release_oid_set(minor_status, &handle->mechanisms);
|
||||||
|
if (handle->ccache)
|
||||||
|
krb5_cc_close(context, handle->ccache);
|
||||||
|
if (handle->keytab)
|
||||||
|
krb5_kt_close(context, handle->keytab);
|
||||||
if (handle->principal)
|
if (handle->principal)
|
||||||
krb5_free_principal(context, handle->principal);
|
krb5_free_principal(context, handle->principal);
|
||||||
HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
|
HEIMDAL_MUTEX_destroy(&handle->cred_id_mutex);
|
||||||
|
Reference in New Issue
Block a user