aboutsummaryrefslogtreecommitdiffstats
path: root/lib/crypto/c_src/crypto_callback.c
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-06-19 13:44:11 +0200
committerSverker Eriksson <[email protected]>2014-06-19 13:44:11 +0200
commit1af8998028f77b4ca01c52972a5983b072ef02d1 (patch)
treead902157541bdda70fac3d4769b1a8eeb25c48bc /lib/crypto/c_src/crypto_callback.c
parent42ad82b3186b69fec93ab07ea686490bf2fe5840 (diff)
parent3e04f2d1e62aa76f0ffe4ad36dccd843cc89b9ae (diff)
downloadotp-1af8998028f77b4ca01c52972a5983b072ef02d1.tar.gz
otp-1af8998028f77b4ca01c52972a5983b072ef02d1.tar.bz2
otp-1af8998028f77b4ca01c52972a5983b072ef02d1.zip
Merge branch 'sverk/crypto-ec-mem-leak/OTP-11999' into maint
* sverk/crypto-ec-mem-leak/OTP-11999: crypto: Fix memory leak of EC "keys" and "points" crypto: Fix crypto for debug and valgrind
Diffstat (limited to 'lib/crypto/c_src/crypto_callback.c')
-rw-r--r--lib/crypto/c_src/crypto_callback.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/crypto/c_src/crypto_callback.c b/lib/crypto/c_src/crypto_callback.c
index a08dcec463..b4c175ae43 100644
--- a/lib/crypto/c_src/crypto_callback.c
+++ b/lib/crypto/c_src/crypto_callback.c
@@ -107,8 +107,6 @@ static INLINE void locking(int mode, ErlNifRWLock* lock)
static void locking_function(int mode, int n, const char *file, int line)
{
- ASSERT(n>=0 && n<CRYPTO_num_locks());
-
locking(mode, lock_vec[n]);
}