diff options
author | Songchun Fan <schfan@google.com> | 2019-08-28 21:31:03 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-08-28 21:31:03 +0000 |
commit | 0d2b5392e9144e40e5d2a6913ff4ee33bc75b7a0 (patch) | |
tree | 11ff2bb02005bf2b04715f71e642dc650006c77c /libs/androidfw | |
parent | 8d4be69f1c1223995d556b8b187e8864b7b0d673 (diff) | |
parent | 898b31640274863e14ba0c18a0f6f04706e17737 (diff) |
Merge "[base] close zip archive when parsing fails"
Diffstat (limited to 'libs/androidfw')
-rw-r--r-- | libs/androidfw/ApkAssets.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/androidfw/ApkAssets.cpp b/libs/androidfw/ApkAssets.cpp index 9f4a6193b434..cf2ef3070385 100644 --- a/libs/androidfw/ApkAssets.cpp +++ b/libs/androidfw/ApkAssets.cpp @@ -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 {}; } |