fix memory leak
[openssl.git] / apps / openssl.c
index 9a5e37eac7fce9ae6ba9c78d109a9410954bc84a..58f8bb73a10fed6c9401de7a10cb42eaee3ae8f7 100644 (file)
@@ -353,10 +353,10 @@ end:
        ERR_remove_state(0);
 
        EVP_cleanup();
+        ENGINE_cleanup();
+       
        ERR_free_strings();
        
-        ENGINE_cleanup();
-
        apps_shutdown();
 
        CRYPTO_mem_leaks(bio_err);