From a642f23fe7988a13625e97067d52b92f8ddf9544 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Fri, 7 Oct 2011 22:17:06 +0000 Subject: [PATCH] Fix a memory leak in make_gss_checksum From greg.mcclement@sap.com. ticket: 6972 target_version: 1.9.2 tags: pullup git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25323 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/gssapi/krb5/init_sec_context.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/gssapi/krb5/init_sec_context.c b/src/lib/gssapi/krb5/init_sec_context.c index d62822e2d..631840c8b 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -316,6 +316,7 @@ make_gss_checksum (krb5_context context, krb5_auth_context auth_context, /* Turn KRB5_AUTH_CONTEXT_DO_TIME back on and reset the send subkey. */ krb5_auth_con_setflags(context, auth_context, con_flags); krb5_auth_con_setsendsubkey_k(context, auth_context, send_subkey); + krb5_k_free_key(context, send_subkey); if (code) { /* don't fail here; just don't accept/do the delegation -- 2.26.2