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_0_2f~54 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c44844d928ad3c471c8dbe8baf2df8957900125b;p=oweals%2Fopenssl.git Cleanup the EVP_MD_CTX before exit rather than after Reviewed-by: Matt Caswell --- 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); }