summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2015-12-08 01:01:13 +0100
committerRichard Levitte <levitte@openssl.org>2015-12-08 12:07:22 +0100
commit66a1ccf494b8fe1b842cd7bdda2d1a025d325753 (patch)
treeccbb83b408a335528f00dbd85ee7744d019edaea /crypto
parent777adea16aded9e398fb691074da60891ef63c58 (diff)
Cleanup the EVP_MD_CTX before exit rather than after
Reviewed-by: Matt Caswell <matt@openssl.org> (cherry picked from commit c44844d928ad3c471c8dbe8baf2df8957900125b)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/sha/sha1test.c2
1 files changed, 1 insertions, 1 deletions
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);
}