Fix yet another memory leak in pa_sam
authorGreg Hudson <ghudson@mit.edu>
Wed, 6 May 2009 18:54:47 +0000 (18:54 +0000)
committerGreg Hudson <ghudson@mit.edu>
Wed, 6 May 2009 18:54:47 +0000 (18:54 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22321 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/preauth2.c

index 5fb8adde2a35fee4f0ce3128799abcdb7e725395..f72ebf29cdfdaf8a93db6a318a41341140a5c16d 100644 (file)
@@ -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;
     }