Skip to content

Commit f31bc84

Browse files
authored
Merge pull request #512 from ChinYikMing/fix/close-file
Fix unmatch close function call
2 parents 57ae514 + 465a134 commit f31bc84

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)