diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-20 10:19:56 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-20 10:21:34 -0400 |
commit | 9fa73003fca5e884c0c663c2035ce6e60994c339 (patch) | |
tree | 4bebae718e21b5ded3eaddb8f673998b0e09c25c /src/common/crypto.c | |
parent | e4e949e901400c8516a2db8d2fd508b1e7bb842e (diff) | |
download | tor-9fa73003fca5e884c0c663c2035ce6e60994c339.tar.gz tor-9fa73003fca5e884c0c663c2035ce6e60994c339.zip |
Remove dmalloc support; closes #26426
Dmalloc hasn't seen a release in over a decade, and there are much
better tools to use these days.
Diffstat (limited to 'src/common/crypto.c')
-rw-r--r-- | src/common/crypto.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/common/crypto.c b/src/common/crypto.c index 14129086eb..57eb9c64c9 100644 --- a/src/common/crypto.c +++ b/src/common/crypto.c @@ -506,16 +506,3 @@ crypto_global_cleanup(void) } /** @} */ - -#ifdef USE_DMALLOC -/** Tell the crypto library to use Tor's allocation functions rather than - * calling libc's allocation functions directly. Return 0 on success, -1 - * on failure. */ -int -crypto_use_tor_alloc_functions(void) -{ - int r = CRYPTO_set_mem_ex_functions(tor_malloc_, tor_realloc_, tor_free_); - return r ? 0 : -1; -} -#endif /* defined(USE_DMALLOC) */ - |