Fix memory leak.

This commit is contained in:
Dr. Stephen Henson 2004-04-09 22:14:57 +00:00
parent dee67db36c
commit 21b9c11e99

View file

@ -446,7 +446,10 @@ int do_fp(BIO *out, unsigned char *buf, BIO *bp, int sep, int binout,
}
}
else if(hmac_key)
{
HMAC_Final(&hmac_ctx,buf,&len);
HMAC_CTX_cleanup(&hmac_ctx);
}
else
len=BIO_gets(bp,(char *)buf,BUFSIZE);