Skip to content

Commit 465a134

Browse files
committed
Fix unmatch close function call
If HAVE_MMAP is not set, the open and close file operations use the standard C library interface, so fclose should be used instead of the close system call.
1 parent 57ae514 commit 465a134

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/elf.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ bool elf_open(elf_t *e, const char *input)
353353
#if HAVE_MMAP
354354
close(fd);
355355
#else
356-
close(f);
356+
fclose(f);
357357
#endif
358358

359359
free_path:

0 commit comments

Comments
 (0)