diff --git a/components/heap/multi_heap.c b/components/heap/multi_heap.c index e167b3b35721..05477806d426 100644 --- a/components/heap/multi_heap.c +++ b/components/heap/multi_heap.c @@ -129,7 +129,7 @@ size_t multi_heap_get_allocated_size_impl(multi_heap_handle_t heap, void *p) multi_heap_handle_t multi_heap_register_impl(void *start_ptr, size_t size) { assert(start_ptr); - if(size < (tlsf_size(NULL) + tlsf_block_size_min() + sizeof(heap_t))) { + if(size < (sizeof(heap_t))) { //Region too small to be a heap. return NULL; }