From: Greg Hudson Date: Mon, 4 May 2009 17:16:38 +0000 (+0000) Subject: Fix an error message memory leak in krb5_preauth_supply_preauth_data X-Git-Tag: krb5-1.8-alpha1~500 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f61066add2ea0972b38492126eb98ac77cd5e734;p=krb5.git Fix an error message memory leak in krb5_preauth_supply_preauth_data git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22307 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index 3d4329eb6..542c2fa5d 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -260,6 +260,7 @@ krb5_preauth_supply_preauth_data(krb5_context context, emsg = krb5_get_error_message(context, retval); krb5int_set_error(&context->err, retval, "Preauth plugin %s: %s", context->preauth_context->modules[i].name, emsg); + krb5_free_error_message(context, emsg); break; } }