From cff2c9fbe3037aee9a517ec5004b047b4f0bde88 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Wed, 5 Jan 2005 02:51:46 +0000 Subject: [PATCH] plug leak git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@14458 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/gssapi/import_sec_context.c | 2 ++ lib/gssapi/krb5/import_sec_context.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib/gssapi/import_sec_context.c b/lib/gssapi/import_sec_context.c index 45cc224c5..94a80fc56 100644 --- a/lib/gssapi/import_sec_context.c +++ b/lib/gssapi/import_sec_context.c @@ -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; diff --git a/lib/gssapi/krb5/import_sec_context.c b/lib/gssapi/krb5/import_sec_context.c index 45cc224c5..94a80fc56 100644 --- a/lib/gssapi/krb5/import_sec_context.c +++ b/lib/gssapi/krb5/import_sec_context.c @@ -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;