summaryrefslogtreecommitdiff
path: root/main/openssl/apps/openssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'main/openssl/apps/openssl.c')
-rw-r--r--main/openssl/apps/openssl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/openssl/apps/openssl.c b/main/openssl/apps/openssl.c
index a9fa1e3f..bca79a23 100644
--- a/main/openssl/apps/openssl.c
+++ b/main/openssl/apps/openssl.c
@@ -437,9 +437,7 @@ end:
if (prog != NULL) lh_FUNCTION_free(prog);
if (arg.data != NULL) OPENSSL_free(arg.data);
- apps_shutdown();
- CRYPTO_mem_leaks(bio_err);
if (bio_err != NULL)
{
BIO_free(bio_err);
@@ -452,6 +450,9 @@ end:
OPENSSL_free(Argv);
}
#endif
+ apps_shutdown();
+ CRYPTO_mem_leaks(bio_err);
+
OPENSSL_EXIT(ret);
}