Fix leak of mapped zip central directories
am: d1531ac4e8
Change-Id: Iacc5d17b17cd05742e78650bde969ccbfa3b09c2
This commit is contained in:
commit
fd84f60d45
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ MappedFile::~MappedFile() {
|
|||
if (base_ != nullptr) UnmapViewOfFile(base_);
|
||||
if (handle_ != nullptr) CloseHandle(handle_);
|
||||
#else
|
||||
if (base_ != nullptr) munmap(base_, size_);
|
||||
if (base_ != nullptr) munmap(base_, size_ + offset_);
|
||||
#endif
|
||||
|
||||
base_ = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue