Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fd84f60d authored by Ryan Mitchell's avatar Ryan Mitchell Committed by android-build-merger
Browse files

Fix leak of mapped zip central directories

am: d1531ac4

Change-Id: Iacc5d17b17cd05742e78650bde969ccbfa3b09c2
parents 9e28c544 d1531ac4
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -76,7 +76,7 @@ MappedFile::~MappedFile() {
  if (base_ != nullptr) UnmapViewOfFile(base_);
  if (base_ != nullptr) UnmapViewOfFile(base_);
  if (handle_ != nullptr) CloseHandle(handle_);
  if (handle_ != nullptr) CloseHandle(handle_);
#else
#else
  if (base_ != nullptr) munmap(base_, size_);
  if (base_ != nullptr) munmap(base_, size_ + offset_);
#endif
#endif


  base_ = nullptr;
  base_ = nullptr;