diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-01-11 20:36:50 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-01-11 20:36:50 +0000 |
commit | 8e6925b0cd0ece649fe6b83268528cf8c17adf41 (patch) | |
tree | df12b5791e1457ab8319eb4f3560665af6c869e5 /crypto | |
parent | d7ecd42255574b775104a7610164a29c1ebfe47f (diff) |
Add CRYPTO_MDEBUG_ABORT to abort() is there are any memory leaks. This will
cause "make test" failures and make resource leaks more obvious.
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/mem_dbg.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crypto/mem_dbg.c b/crypto/mem_dbg.c index 131669a23b..139cfe1794 100644 --- a/crypto/mem_dbg.c +++ b/crypto/mem_dbg.c @@ -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 { |