Fix leak of mapped zip central directories

am: d1531ac4e8

Change-Id: I99fb8b946300e2ef8aca948c46c6de6a62c38104
This commit is contained in:
Ryan Mitchell 2019-05-29 08:58:55 -07:00 committed by android-build-merger
commit fdd4eabe62

View file

@ -79,7 +79,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;