From: Greg Hudson Date: Wed, 6 May 2009 18:54:47 +0000 (+0000) Subject: Fix yet another memory leak in pa_sam X-Git-Tag: krb5-1.8-alpha1~486 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e4e5531c6a9543f601f56e1dfb7360a23af24e9;p=krb5.git Fix yet another memory leak in pa_sam git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22321 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/preauth2.c b/src/lib/krb5/krb/preauth2.c index 5fb8adde2..f72ebf29c 100644 --- a/src/lib/krb5/krb/preauth2.c +++ b/src/lib/krb5/krb/preauth2.c @@ -1016,6 +1016,7 @@ krb5_error_code pa_sam(krb5_context context, } else { /* Eventually, combine SAD with long-term key to get encryption key. */ + krb5_free_sam_challenge(context, sam_challenge); return KRB5_PREAUTH_BAD_TYPE; }