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.
This commit is contained in:
parent
e5acb2bd2e
commit
ee087bb8eb
1 changed files with 2 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue