From 58e065ff7f63a231b2fe6f88a81b6c5e4cb206a1 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Wed, 3 Apr 2013 22:16:35 -0400 Subject: Fix a few more resource leaks Still a couple resource leaks after the last Coverity scan Signed-off-by: Simo Sorce --- proxy/src/mechglue/gpp_acquire_cred.c | 3 +-- proxy/src/mechglue/gpp_context.c | 2 ++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/proxy/src/mechglue/gpp_acquire_cred.c b/proxy/src/mechglue/gpp_acquire_cred.c index 43eca8c..a3290dd 100644 --- a/proxy/src/mechglue/gpp_acquire_cred.c +++ b/proxy/src/mechglue/gpp_acquire_cred.c @@ -317,9 +317,8 @@ OM_uint32 gssi_acquire_cred_with_password(OM_uint32 *minor_status, case GPP_REMOTE_ONLY: /* FIXME: not currently available */ - return GSS_S_UNAVAILABLE; - break; + /* fall through for now */ default: maj = GSS_S_FAILURE; diff --git a/proxy/src/mechglue/gpp_context.c b/proxy/src/mechglue/gpp_context.c index 448c3e0..914edc8 100644 --- a/proxy/src/mechglue/gpp_context.c +++ b/proxy/src/mechglue/gpp_context.c @@ -266,6 +266,8 @@ done: if (maj == GSS_S_COMPLETE) { if (mech_type) { *mech_type = mech_oid; + } else { + (void)gss_release_oid(&min, &mech_oid); } if (src_name) { *src_name = (gss_name_t)s_name; -- cgit