From 23a7bc29395bebaac9f45b722dc9fd0715c668af Mon Sep 17 00:00:00 2001 From: David Gauchard Date: Fri, 12 Jan 2018 14:34:53 +0100 Subject: [PATCH] restore zalloc() (lost with OOM debug commit, used by lwip/lwip2) --- tools/sdk/include/mem.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/sdk/include/mem.h b/tools/sdk/include/mem.h index 9fe13a8bf..c9231af8e 100644 --- a/tools/sdk/include/mem.h +++ b/tools/sdk/include/mem.h @@ -43,7 +43,8 @@ bool ICACHE_FLASH_ATTR check_memleak_debug_enable(void) #define os_malloc malloc #define os_calloc calloc #define os_realloc realloc -#define os_zalloc zalloc +#define os_zalloc(s) calloc(1,s) +#define zalloc(s) calloc(1,s) #ifndef MEMLEAK_DEBUG #define MEMLEAK_DEBUG_ENABLE 0