mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-23 05:24:46 -07:00
merge upcoming changes
This commit is contained in:
@@ -187,7 +187,11 @@ void* pvPortMalloc(size_t xSize) {
|
||||
// allocate block
|
||||
void* data = tlsf_malloc(tlsf, xSize);
|
||||
if(data == NULL) {
|
||||
furi_crash("out of memory");
|
||||
if(xSize == 0) {
|
||||
furi_crash("malloc(0)");
|
||||
} else {
|
||||
furi_crash("out of memory");
|
||||
}
|
||||
}
|
||||
|
||||
// update heap usage
|
||||
|
||||
Reference in New Issue
Block a user