commit | 2ec03a353029341a6dee647bde0f1cbe91701eed | [log] [tgz] |
---|---|---|
author | Ryan Mitchell <rtmitchell@google.com> | Wed May 29 08:58:44 2019 -0700 |
committer | android-build-merger <android-build-merger@google.com> | Wed May 29 08:58:44 2019 -0700 |
tree | 4fe92e55c4a352fbb1faaa041d16442faeb6b03e | |
parent | 99f15a94fe94703351058575dfc9e213cafa08b9 [diff] | |
parent | ff78e3c4b0f6b9f74d20d1e305ea9074ed526c5a [diff] |
Fix leak of mapped zip central directories am: d1531ac4e8 Change-Id: Iacc5d17b17cd05742e78650bde969ccbfa3b09c2
diff --git a/base/mapped_file.cpp b/base/mapped_file.cpp index 7c65dc3..d26e8ba 100644 --- a/base/mapped_file.cpp +++ b/base/mapped_file.cpp
@@ -76,7 +76,7 @@ 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;