Cleanup the EVP_MD_CTX before exit rather than after
[openssl.git] / crypto / sha / sha1test.c
index 0052a95..551a348 100644 (file)
@@ -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);
 }