mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 14:07:42 +00:00
dm: close filepointer before exiting acrn_load_elf()
In acrn_load_elf(), file pointer 'fp' is kept in open state before exiting if 'load_elf32()' is executed, this patch is to fix this bug. Tracked-On: #4085 Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>
This commit is contained in:
parent
84c3ee21e4
commit
b51b89807f
@ -244,6 +244,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;
|
||||
|
Loading…
Reference in New Issue
Block a user