Fix a memory leak in krb5_obtain_padata
authorGreg Hudson <ghudson@mit.edu>
Tue, 5 May 2009 17:08:54 +0000 (17:08 +0000)
committerGreg Hudson <ghudson@mit.edu>
Tue, 5 May 2009 17:08:54 +0000 (17:08 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22316 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/preauth.c

index 3a99c9dfaddfc7228f004495f3e040a555e11345..1d2a3c4046fc3041b374cc13dab70a24ceb724c3 100644 (file)
@@ -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;
     }