Revert "Free file handle after elf load"

This reverts commit d325a1a43e.
This commit is contained in:
Willy-JL
2023-07-10 19:56:44 +02:00
parent 65faffb921
commit 4a50466f8c

View File

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