Skip to content

Commit

Permalink
[build] Unmap output file header before closing file
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
  • Loading branch information
mcb30 committed May 3, 2017
1 parent 461e7b5 commit 10c2887
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/efireloc.c
Expand Up @@ -452,6 +452,9 @@ static void efireloc ( const char *elf_name, const char *pe_name ) {
pe_sections[RELOC_SECTION_INDEX].Misc.VirtualSize = reloc_len;
pe_sections[RELOC_SECTION_INDEX].SizeOfRawData = reloc_len;

/* Unmap output file header */
munmap ( dos, PE_HEADER_LEN );

/* Close output file */
xclose ( fd );
}
Expand Down

0 comments on commit 10c2887

Please sign in to comment.