| Index: src/platform-openbsd.cc
|
| ===================================================================
|
| --- src/platform-openbsd.cc (revision 9531)
|
| +++ src/platform-openbsd.cc (working copy)
|
| @@ -245,7 +245,7 @@
|
|
|
|
|
| PosixMemoryMappedFile::~PosixMemoryMappedFile() {
|
| - if (memory_) munmap(memory_, size_);
|
| + if (memory_) OS::Free(memory_, size_);
|
| fclose(file_);
|
| }
|
|
|
| @@ -342,7 +342,8 @@
|
|
|
| VirtualMemory::~VirtualMemory() {
|
| if (IsReserved()) {
|
| - if (0 == munmap(address(), size())) address_ = MAP_FAILED;
|
| + OS::Free(address(), size());
|
| + address_ = MAP_FAILED
|
| }
|
| }
|
|
|
|
|