summaryrefslogtreecommitdiffstats
path: root/crypto/mem_dbg.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-01-11 20:36:50 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-01-11 20:36:50 +0000
commit8e6925b0cd0ece649fe6b83268528cf8c17adf41 (patch)
treedf12b5791e1457ab8319eb4f3560665af6c869e5 /crypto/mem_dbg.c
parentd7ecd42255574b775104a7610164a29c1ebfe47f (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/mem_dbg.c')
-rw-r--r--crypto/mem_dbg.c3
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
{