Skip to content

Commit

Permalink
Merge pull request #3246 from mame/fix-possible-fd-leak
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton authored Nov 28, 2024
2 parents 93c0474 + c06e9c4 commit 80c090e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util/pm_string.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ pm_string_mapped_init(pm_string_t *string, const char *filepath) {

source = mmap(NULL, size, PROT_READ, MAP_PRIVATE, fd, 0);
if (source == MAP_FAILED) {
close(fd);
return PM_STRING_INIT_ERROR_GENERIC;
}

Expand Down

0 comments on commit 80c090e

Please sign in to comment.