free allocated storage; reported by Howard Chu

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@11564 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2002-12-19 13:30:36 +00:00
parent 049ae555d0
commit 4b2a8a83d2

View File

@@ -89,10 +89,9 @@ krb5_mk_rep(krb5_context context,
len,
&ap.enc_part.cipher);
krb5_crypto_destroy(context, crypto);
if (ret) {
free(buf);
if (ret)
return ret;
}
ASN1_MALLOC_ENCODE(AP_REP, outbuf->data, outbuf->length, &ap, &len, ret);
free_AP_REP (&ap);