diff options
author | Simo Sorce <simo@redhat.com> | 2013-04-03 22:16:35 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2013-04-03 22:51:22 -0400 |
commit | 58e065ff7f63a231b2fe6f88a81b6c5e4cb206a1 (patch) | |
tree | 1565bff6e27ee0e6c3027629bc11c6de4424bb89 | |
parent | 212d8f424125cdd40c154b2f09a219d4d0325b8d (diff) | |
download | gss-proxy-58e065ff7f63a231b2fe6f88a81b6c5e4cb206a1.tar.gz gss-proxy-58e065ff7f63a231b2fe6f88a81b6c5e4cb206a1.tar.xz gss-proxy-58e065ff7f63a231b2fe6f88a81b6c5e4cb206a1.zip |
Fix a few more resource leaks
Still a couple resource leaks after the last Coverity scan
Signed-off-by: Simo Sorce <simo@redhat.com>
-rw-r--r-- | proxy/src/mechglue/gpp_acquire_cred.c | 3 | ||||
-rw-r--r-- | 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; |