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

Commit 898b3164 authored by Songchun Fan's avatar Songchun Fan
Browse files

[base] close zip archive when parsing fails

Test: manual
Change-Id: I54c054da6000df15dba81ad211eb1cf61e88c5a8
parent 6bd1ab88
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -116,6 +116,7 @@ std::unique_ptr<const ApkAssets> ApkAssets::LoadImpl(

  if (result != 0) {
    LOG(ERROR) << "Failed to open APK '" << path << "' " << ::ErrorCodeString(result);
    ::CloseArchive(unmanaged_handle);
    return {};
  }