From 21b9c11e99972eb1518f0b02fd369089f14c31fa Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Fri, 9 Apr 2004 22:14:57 +0000 Subject: [PATCH] Fix memory leak. --- apps/dgst.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1