From: Greg Hudson Date: Tue, 5 May 2009 17:08:54 +0000 (+0000) Subject: Fix a memory leak in krb5_obtain_padata X-Git-Tag: krb5-1.8-alpha1~491 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=86389db40abdfb58b7986c83ceb32ca231ab4038;p=krb5.git Fix a memory leak in krb5_obtain_padata git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22316 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/krb5/krb/preauth.c b/src/lib/krb5/krb/preauth.c index 3a99c9dfa..1d2a3c404 100644 --- a/src/lib/krb5/krb/preauth.c +++ b/src/lib/krb5/krb/preauth.c @@ -189,7 +189,7 @@ krb5_error_code krb5_obtain_padata(krb5_context context, krb5_pa_data **preauth_ * This will set the salt length */ if ((retval = krb5_principal2salt(context, request->client, &salt))) - return(retval); + goto cleanup; f_salt = 1; }