From 86389db40abdfb58b7986c83ceb32ca231ab4038 Mon Sep 17 00:00:00 2001 From: Greg Hudson Date: Tue, 5 May 2009 17:08:54 +0000 Subject: [PATCH] Fix a memory leak in krb5_obtain_padata git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22316 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/preauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.26.2