From: Dr. Stephen Henson Date: Fri, 9 Apr 2004 22:14:57 +0000 (+0000) Subject: Fix memory leak. X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=21b9c11e99972eb1518f0b02fd369089f14c31fa;p=oweals%2Fopenssl.git Fix memory leak. --- diff --git a/apps/dgst.c b/apps/dgst.c index 75990a2fb1..0ea8c9fc9f 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -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);