Add CRYPTO_MDEBUG_ABORT to abort() is there are any memory leaks. This will
cause "make test" failures and make resource leaks more obvious.
This commit is contained in:
@@ -772,6 +772,9 @@ void CRYPTO_mem_leaks(BIO *b)
|
||||
{
|
||||
BIO_printf(b,"%ld bytes leaked in %d chunks\n",
|
||||
ml.bytes,ml.chunks);
|
||||
#ifdef CRYPTO_MDEBUG_ABORT
|
||||
abort();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user