commit | 10654d3a745a314e9961e62bc25f4a9fbb4a15b3 | [log] [tgz] |
---|---|---|
author | Bodo Möller <bodo@openssl.org> | Sun Mar 11 14:49:46 2001 +0000 |
committer | Bodo Möller <bodo@openssl.org> | Sun Mar 11 14:49:46 2001 +0000 |
tree | e87bb850016f12d33c9f1015205888e15f477219 | |
parent | 6017e604f8367050d377af766e4242564675f774 [diff] [blame] |
Forcibly enable memory leak checking during "make test"
diff --git a/apps/openssl.c b/apps/openssl.c index c7ee753..f65096a 100644 --- a/apps/openssl.c +++ b/apps/openssl.c
@@ -228,7 +228,13 @@ arg.count=0; if (getenv("OPENSSL_DEBUG_MEMORY") != NULL) - CRYPTO_malloc_debug_init(); + { + if (!(0 == strcmp(getenv("OPENSSL_DEBUG_MEMORY"), "off"))) + { + CRYPTO_malloc_debug_init(); + CRYPTO_dbg_set_options(V_CRYPTO_MDEBUG_ALL); + } + } CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); #if 0