diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-09-25 17:36:09 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-09-25 17:36:09 +0000 |
commit | 06f96363fdc198eecd53384403ed1f66e141abe5 (patch) | |
tree | 575c3707367a51dab10cbf1aa95e55b2844ba7cd /src/or/main.c | |
parent | a7e383af1930327d568ec3f60627c10739e8e7ba (diff) | |
download | tor-06f96363fdc198eecd53384403ed1f66e141abe5.tar.gz tor-06f96363fdc198eecd53384403ed1f66e141abe5.zip |
Remove now-needless _tor_dmalloc_free helper.
svn:r16964
Diffstat (limited to 'src/or/main.c')
-rw-r--r-- | src/or/main.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/or/main.c b/src/or/main.c index a44b427740..4718a570dc 100644 --- a/src/or/main.c +++ b/src/or/main.c @@ -17,6 +17,7 @@ const char main_c_id[] = #include "or.h" #ifdef USE_DMALLOC #include <dmalloc.h> +#include <openssl/crypto.h> #endif #include "memarea.h" @@ -2046,14 +2047,6 @@ do_hash_password(void) printf("16:%s\n",output); } -#ifdef USE_DMALLOC -#include <openssl/crypto.h> -static void -_tor_dmalloc_free(void *p) -{ - tor_free(p); -} -#endif /** Main entry point for the Tor process. Called from main(). */ /* This function is distinct from main() only so we can link main.c into @@ -2066,8 +2059,7 @@ tor_main(int argc, char *argv[]) init_logging(); #ifdef USE_DMALLOC { - int r = CRYPTO_set_mem_ex_functions(_tor_malloc, _tor_realloc, - _tor_dmalloc_free); + int r = CRYPTO_set_mem_ex_functions(_tor_malloc, _tor_realloc, _tor_free); tor_assert(r); } #endif |