Skip to content
This repository has been archived by the owner on Jul 28, 2024. It is now read-only.

Commit

Permalink
Revert "Free file handle after elf load"
Browse files Browse the repository at this point in the history
This reverts commit d325a1a.
  • Loading branch information
Willy-JL committed Jul 10, 2023
1 parent 65faffb commit 4a50466
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions lib/flipper_application/elf/elf_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 4a50466

Please sign in to comment.