feat(heap): Remove macro "MEMLEAK_DEBUG"

This commit is contained in:
Dong Heng
2018-09-10 15:11:44 +08:00
parent a4369522b9
commit e40b6d645a
6 changed files with 4 additions and 14 deletions

View File

@ -238,7 +238,7 @@ void _heap_caps_free(void *ptr, const char *file, size_t line)
}
mem_blk = ptr2blk(ptr, ptr_is_traced(ptr));
#ifndef MEMLEAK_DEBUG
#ifdef CONFIG_ESP_HEAP_CHECK_FREED
if (mem_blk->prev) {
ESP_EARLY_LOGE("%p already freed\n", ptr);
return;