diff --git a/skynet-src/malloc_hook.c b/skynet-src/malloc_hook.c index 33dc5263..61c07392 100644 --- a/skynet-src/malloc_hook.c +++ b/skynet-src/malloc_hook.c @@ -224,9 +224,3 @@ skynet_lalloc(void *ud, void *ptr, size_t osize, size_t nsize) { return skynet_realloc(ptr, nsize); } } - -void -malloc_inithook(void) { - memset(mem_stats, 0, sizeof(mem_stats)); -} - diff --git a/skynet-src/skynet_main.c b/skynet-src/skynet_main.c index 1e7689ef..7c318668 100644 --- a/skynet-src/skynet_main.c +++ b/skynet-src/skynet_main.c @@ -3,7 +3,6 @@ #include "skynet_imp.h" #include "skynet_env.h" #include "skynet_server.h" -#include "malloc_hook.h" #include #include @@ -90,8 +89,6 @@ main(int argc, char *argv[]) { config_file = argv[1]; } skynet_globalinit(); - - malloc_inithook(); skynet_env_init(); sigign();