diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2004-04-09 22:14:57 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2004-04-09 22:14:57 +0000 |
commit | 21b9c11e99972eb1518f0b02fd369089f14c31fa (patch) | |
tree | 17886535121a4471ff1a644dd27996c26277d360 | |
parent | dee67db36c78a62507ccc7902b933fefea1c3b59 (diff) |
Fix memory leak.
-rw-r--r-- | apps/dgst.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |