diff --git a/devicemodel/core/sw_load_elf.c b/devicemodel/core/sw_load_elf.c index 708fd902f..ff4a85d39 100644 --- a/devicemodel/core/sw_load_elf.c +++ b/devicemodel/core/sw_load_elf.c @@ -243,6 +243,7 @@ acrn_load_elf(struct vmctx *ctx, char *elf_file_name, unsigned long *entry, } *entry = elf_ehdr->e_entry; + fclose(fp); free(elf_buf); return ret;