From: Greg Hudson Date: Tue, 27 Dec 2011 06:39:07 +0000 (+0000) Subject: Fix an unlikely memory leak in r25591 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fedb540b85099fd2748bcbceddd7c09fb5b33f02;p=krb5.git Fix an unlikely memory leak in r25591 ticket: 6936 git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25604 dc483132-0cff-0310-8789-dd5450dbe970 --- 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];