From c376d170d184c037134005830e584e21f429dfb2 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 8 Dec 2015 01:01:13 +0100 Subject: Cleanup the EVP_MD_CTX before exit rather than after Reviewed-by: Matt Caswell --- test/sha1test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/sha1test.c b/test/sha1test.c index 676cc84839..8cba4b22fd 100644 --- a/test/sha1test.c +++ b/test/sha1test.c @@ -136,8 +136,8 @@ int main(int argc, char *argv[]) if (err) printf("ERROR: %d\n", err); #endif - EXIT(err); EVP_MD_CTX_free(c); + EXIT(err); return (0); } -- cgit v1.2.3