From: Richard Levitte Date: Tue, 1 Aug 2000 17:15:36 +0000 (+0000) Subject: Make it so we can dynamically enable memory allocation debugging through the X-Git-Tag: OpenSSL-engine-0_9_6-beta1~12^2~88 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=ee087bb8ebc2565e31a91290a270db0abe00de99;ds=sidebyside 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. --- 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();