add a missing krb5_free_kdc_rep()
authorJohn Kohl <jtkohl@mit.edu>
Fri, 9 Mar 1990 09:42:26 +0000 (09:42 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 9 Mar 1990 09:42:26 +0000 (09:42 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@376 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/krb/decode_kdc.c

index dd10cd99c1c77b9100dbb70926856a69371d884f..932a7b6a08e7d8a13babe791c3a86c7d8be16fb4 100644 (file)
@@ -71,6 +71,7 @@ OLDDECLARG(krb5_kdc_rep **, dec_rep)
     }
 
     if (local_dec_rep->etype != etype) {
+       krb5_free_kdc_rep(local_dec_rep);
        return KRB5KDC_ERR_ETYPE_NOSUPP; /* XXX */
     }
     if (retval = krb5_kdc_rep_decrypt_proc(key, 0, local_dec_rep)) {