mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2025-12-12 04:34:43 +04:00
Loader: Fix BusFault in handling of OOM (#3992)
* Loader: Fix BusFault in handling of OOM * Furi: fix crash in aligned_alloc, cleanup aligned_alloc use Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
@@ -106,5 +106,7 @@ void* aligned_malloc(size_t size, size_t alignment) {
|
||||
}
|
||||
|
||||
void aligned_free(void* p) {
|
||||
free(((void**)p)[-1]);
|
||||
if(p) {
|
||||
free(((void**)p)[-1]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user