Commit ee087bb8 authored by Richard Levitte's avatar Richard Levitte
Browse files

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.
parent e5acb2bd
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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();