Skip to content

Commit

Permalink
Fix resource leaks when the format of /proc/self/maps is unexpected o…
Browse files Browse the repository at this point in the history
…n Linux.

(close #20)
  • Loading branch information
kubo committed Sep 27, 2019
1 parent 8fbdd8d commit a1bbcea
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plthook_elf.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,7 @@ static int get_memory_permission(void *address)
set_errmsg("Could not find memory region containing %p", (void*)addr);
return 0;
unknown_perms:
fclose(fp);
set_errmsg("Unexcepted memory permission %s at %p", perms, (void*)addr);
return 0;
}
Expand Down

0 comments on commit a1bbcea

Please sign in to comment.