#include "or.h"
#ifdef USE_DMALLOC
#include <dmalloc.h>
+#include <openssl/crypto.h>
#endif
#include "memarea.h"
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
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