Skip to content

Commit

Permalink
[nfc][sanitizer] Unmap memory in test (#112644)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalybuka authored Oct 17, 2024
1 parent 9930a5a commit 4c98a71
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ TEST(SanitizerCommon, IsAccessibleMemoryRange) {
EXPECT_TRUE(IsAccessibleMemoryRange(mem + 2 * page_size, page_size));
EXPECT_FALSE(IsAccessibleMemoryRange(mem, 3 * page_size));
EXPECT_FALSE(IsAccessibleMemoryRange(0x0, 2));

munmap((void *)mem, 3 * page_size);
}

} // namespace __sanitizer
Expand Down

0 comments on commit 4c98a71

Please sign in to comment.