From 7cb42ee751f251797ce0ad809e1eb48483c8e7b7 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Tue, 18 Oct 2011 21:07:31 +0000 Subject: [PATCH] pull up r25323 from trunk ------------------------------------------------------------------------ r25323 | ghudson | 2011-10-07 18:17:06 -0400 (Fri, 07 Oct 2011) | 8 lines ticket: 6972 target_version: 1.9.2 tags: pullup Fix a memory leak in make_gss_checksum. From greg.mcclement@sap.com. ticket: 6972 version_fixed: 1.9.2 status: resolved git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-9@25383 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 d811eb30c..9de89fdd3 100644 --- a/src/lib/gssapi/krb5/init_sec_context.c +++ b/src/lib/gssapi/krb5/init_sec_context.c @@ -317,6 +317,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