mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
Revert "Free file handle after elf load"
This reverts commit d325a1a43e.
This commit is contained in:
@@ -764,9 +764,7 @@ void elf_file_free(ELFFile* elf) {
|
||||
free(elf->debug_link_info.debug_link);
|
||||
}
|
||||
|
||||
if(elf->fd != NULL) {
|
||||
storage_file_free(elf->fd);
|
||||
}
|
||||
storage_file_free(elf->fd);
|
||||
free(elf);
|
||||
}
|
||||
|
||||
@@ -897,9 +895,6 @@ ELFFileLoadStatus elf_file_load_sections(ELFFile* elf) {
|
||||
FURI_LOG_I(TAG, "Total size of loaded sections: %u", total_size); //-V576
|
||||
}
|
||||
|
||||
storage_file_free(elf->fd);
|
||||
elf->fd = NULL;
|
||||
|
||||
return status;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user