From ee087bb8ebc2565e31a91290a270db0abe00de99 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 1 Aug 2000 17:15:36 +0000 Subject: Make it so we can dynamically enable memory allocation debugging through the environment variable OPENSSL_DEBUG_MEMORY (existence is sufficient). At the same time, it makes sure that CRYPTO_malloc_debug_init() gets expanded some- where and thereby tested for compilation. --- apps/openssl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps') diff --git a/apps/openssl.c b/apps/openssl.c index 5f0ffa9fd4..c3680c5e71 100644 --- a/apps/openssl.c +++ b/apps/openssl.c @@ -101,6 +101,8 @@ int main(int Argc, char *Argv[]) arg.data=NULL; arg.count=0; + if (getenv("OPENSSL_DEBUG_MEMORY") != NULL) + CRYPTO_malloc_debug_init(); CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON); apps_startup(); -- cgit v1.2.3