Skip to content

Commit ea9befa

Browse files
committed
Finish merge cleanuo
1 parent 8b3bb1f commit ea9befa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cores/esp8266/heap.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -691,23 +691,23 @@ void* IRAM_ATTR sdk3_pvPortMalloc(size_t size, const char* file, int line, bool
691691
{
692692
if (iram) {
693693
HeapSelectIram ephemeral;
694-
return heap_pvPortMalloc(size, file, line);
694+
return _heap_pvPortMalloc(size, file, line, __builtin_return_address(0));
695695
} else {
696696
HeapSelectDram ephemeral;
697-
return heap_pvPortMalloc(size, file, line);
697+
return _heap_pvPortMalloc(size, file, line, __builtin_return_address(0));
698698
}
699699
}
700700

701701
void* IRAM_ATTR pvPortCallocIram(size_t count, size_t size, const char* file, int line)
702702
{
703703
HeapSelectIram ephemeral;
704-
return heap_pvPortCalloc(count, size, file, line);
704+
return _heap_pvPortCalloc(count, size, file, line, __builtin_return_address(0));
705705
}
706706

707707
void* IRAM_ATTR pvPortZallocIram(size_t size, const char* file, int line)
708708
{
709709
HeapSelectIram ephemeral;
710-
return heap_pvPortZalloc(size, file, line);
710+
return _heap_pvPortCalloc(1, size, file, line, __builtin_return_address(0));
711711
}
712712

713713
/*

0 commit comments

Comments
 (0)