From: Richard Levitte Date: Tue, 8 Dec 2015 00:01:13 +0000 (+0100) Subject: Cleanup the EVP_MD_CTX before exit rather than after X-Git-Tag: OpenSSL_1_1_0-pre1~91 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c376d170d184c037134005830e584e21f429dfb2;p=oweals%2Fopenssl.git Cleanup the EVP_MD_CTX before exit rather than after Reviewed-by: Matt Caswell --- 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); }