Skip to content

Commit

Permalink
post-process-pe: Fix a missing return code check
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Jones <pjones@redhat.com>
  • Loading branch information
vathpela committed Apr 19, 2022
1 parent a2da05f commit bda03b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion post-process-pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ handle_one(char *f)
warn("msync(%p, %zu, MS_SYNC) failed", map, sz);
failed = 1;
}
munmap(map, sz);
rc = munmap(map, sz);
if (rc < 0) {
warn("munmap(%p, %zu) failed", map, sz);
failed = 1;
Expand Down

0 comments on commit bda03b8

Please sign in to comment.