mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
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
@ -101,6 +101,8 @@ int main(int Argc, char *Argv[])
|
|||||||
arg.data=NULL;
|
arg.data=NULL;
|
||||||
arg.count=0;
|
arg.count=0;
|
||||||
|
|
||||||
|
if (getenv("OPENSSL_DEBUG_MEMORY") != NULL)
|
||||||
|
CRYPTO_malloc_debug_init();
|
||||||
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
|
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
|
||||||
|
|
||||||
apps_startup();
|
apps_startup();
|
||||||
|
Loading…
Reference in New Issue
Block a user