Cleanup the EVP_MD_CTX before exit rather than after
authorRichard Levitte <levitte@openssl.org>
Tue, 8 Dec 2015 00:01:13 +0000 (01:01 +0100)
committerRichard Levitte <levitte@openssl.org>
Tue, 8 Dec 2015 00:01:13 +0000 (01:01 +0100)
Reviewed-by: Matt Caswell <matt@openssl.org>
test/sha1test.c

index 676cc84839c9bd54b385ad35433e870d183aaffb..8cba4b22fd332d543b7bcf2d5144bf12e282bfef 100644 (file)
@@ -136,8 +136,8 @@ int main(int argc, char *argv[])
     if (err)
         printf("ERROR: %d\n", err);
 #endif
     if (err)
         printf("ERROR: %d\n", err);
 #endif
-    EXIT(err);
     EVP_MD_CTX_free(c);
     EVP_MD_CTX_free(c);
+    EXIT(err);
     return (0);
 }
 
     return (0);
 }