1
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:
WillyJL
2024-12-18 22:33:59 +01:00
committed by GitHub
parent 9c96bbfc54
commit a7b3a13581
2 changed files with 8 additions and 8 deletions

View File

@@ -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]);
}
}