plug leak

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14458 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Luke Howard
2005-01-05 02:51:46 +00:00
parent 2172d864c7
commit cff2c9fbe3
2 changed files with 4 additions and 0 deletions

View File

@@ -204,6 +204,7 @@ gss_import_sec_context (
if (ret)
goto failure;
krb5_storage_free (sp);
return GSS_S_COMPLETE;
failure:
@@ -220,6 +221,7 @@ failure:
if((*context_handle)->order)
gssapi_msg_order_destroy(&(*context_handle)->order);
HEIMDAL_MUTEX_destroy(&(*context_handle)->ctx_id_mutex);
krb5_storage_free (sp);
free (*context_handle);
*context_handle = GSS_C_NO_CONTEXT;
return ret;

View File

@@ -204,6 +204,7 @@ gss_import_sec_context (
if (ret)
goto failure;
krb5_storage_free (sp);
return GSS_S_COMPLETE;
failure:
@@ -220,6 +221,7 @@ failure:
if((*context_handle)->order)
gssapi_msg_order_destroy(&(*context_handle)->order);
HEIMDAL_MUTEX_destroy(&(*context_handle)->ctx_id_mutex);
krb5_storage_free (sp);
free (*context_handle);
*context_handle = GSS_C_NO_CONTEXT;
return ret;