aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cryptlib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>1999-11-12 02:51:24 +0000
committerRichard Levitte <levitte@openssl.org>1999-11-12 02:51:24 +0000
commit1f575f1b1df1d4effa5a97cf97850097d69aee8c (patch)
tree9c58c91aed247f7f8517fe4c67c96ac9c25e5375 /crypto/cryptlib.c
parentf18a93ab04f248de45a8bcdded9b91880c690dbd (diff)
downloadopenssl-1f575f1b1df1d4effa5a97cf97850097d69aee8c.tar.gz
Two changes have been made:
1. Added code to the memory leak detecting code to give the user the possibility to add information, thereby forming a traceback. 2. Make the memory leak detecting code multithread-safe. The idea is that we're actually dealing with two separate critical sections, one containing the hash tables with the information, the other containing the current memory checking mode. Those should not be handled with the same lock, especially since their handling overlap. Hence, the added second lock.
Diffstat (limited to 'crypto/cryptlib.c')
-rw-r--r--crypto/cryptlib.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index b9586ce1bb..5142b6b6bf 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -93,7 +93,8 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
"readdir",
"RSA_blinding",
"dh",
-#if CRYPTO_NUM_LOCKS != 25
+ "debug_malloc2",
+#if CRYPTO_NUM_LOCKS != 26
# error "Inconsistency between crypto.h and cryptlib.c"
#endif
};