summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2004-04-09 22:14:57 +0000
committerDr. Stephen Henson <steve@openssl.org>2004-04-09 22:14:57 +0000
commit21b9c11e99972eb1518f0b02fd369089f14c31fa (patch)
tree17886535121a4471ff1a644dd27996c26277d360
parentdee67db36c78a62507ccc7902b933fefea1c3b59 (diff)
Fix memory leak.
-rw-r--r--apps/dgst.c3
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);