Skip to content

Commit 23a7bc2

Browse files
committed
restore zalloc() (lost with OOM debug commit, used by lwip/lwip2)
1 parent 12f336f commit 23a7bc2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/sdk/include/mem.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ bool ICACHE_FLASH_ATTR check_memleak_debug_enable(void)
4343
#define os_malloc malloc
4444
#define os_calloc calloc
4545
#define os_realloc realloc
46-
#define os_zalloc zalloc
46+
#define os_zalloc(s) calloc(1,s)
47+
#define zalloc(s) calloc(1,s)
4748

4849
#ifndef MEMLEAK_DEBUG
4950
#define MEMLEAK_DEBUG_ENABLE 0

0 commit comments

Comments
 (0)