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:
@@ -89,10 +89,9 @@ krb5_mk_rep(krb5_context context,
|
|||||||
len,
|
len,
|
||||||
&ap.enc_part.cipher);
|
&ap.enc_part.cipher);
|
||||||
krb5_crypto_destroy(context, crypto);
|
krb5_crypto_destroy(context, crypto);
|
||||||
if (ret) {
|
|
||||||
free(buf);
|
free(buf);
|
||||||
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
|
|
||||||
ASN1_MALLOC_ENCODE(AP_REP, outbuf->data, outbuf->length, &ap, &len, ret);
|
ASN1_MALLOC_ENCODE(AP_REP, outbuf->data, outbuf->length, &ap, &len, ret);
|
||||||
free_AP_REP (&ap);
|
free_AP_REP (&ap);
|
||||||
|
Reference in New Issue
Block a user