From fedb540b85099fd2748bcbceddd7c09fb5b33f02 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 27 Dec 2011 06:39:07 +0000 Subject: [PATCH] Fix an unlikely memory leak in r25591 ticket: 6936 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25604 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/spnego/spnego_mech.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gssapi/spnego/spnego_mech.c b/src/lib/gssapi/spnego/spnego_mech.c index dfb9bada4..70246b6ac 100644 --- a/src/lib/gssapi/spnego/spnego_mech.c +++ b/src/lib/gssapi/spnego/spnego_mech.c @@ -589,7 +589,7 @@ init_ctx_new(OM_uint32 *minor_status, ret = get_negotiable_mechs(minor_status, spcred, GSS_C_INITIATE, &sc->mech_set); if (ret != GSS_S_COMPLETE) - return ret; + goto cleanup; /* Set an initial internal mech to make the first context token. */ sc->internal_mech = &sc->mech_set->elements[0]; -- 2.26.2