From c44844d928ad3c471c8dbe8baf2df8957900125b Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 8 Dec 2015 01:01:13 +0100 Subject: [PATCH] Cleanup the EVP_MD_CTX before exit rather than after Reviewed-by: Matt Caswell --- crypto/sha/sha1test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/sha/sha1test.c b/crypto/sha/sha1test.c index 0052a95c7d..551a348df3 100644 --- a/crypto/sha/sha1test.c +++ b/crypto/sha/sha1test.c @@ -157,8 +157,8 @@ int main(int argc, char *argv[]) if (err) printf("ERROR: %d\n", err); # endif - EXIT(err); EVP_MD_CTX_cleanup(&c); + EXIT(err); return (0); } -- 2.25.1