commit | 898b31640274863e14ba0c18a0f6f04706e17737 | [log] [tgz] |
---|---|---|
author | Songchun Fan <schfan@google.com> | Mon Jul 08 09:00:34 2019 -0700 |
committer | Songchun Fan <schfan@google.com> | Wed Aug 28 12:52:27 2019 -0700 |
tree | 4d5f5d5b68f2d71e7a232fa0b6bc954c955657e3 | |
parent | 6bd1ab881e04c367670d39b613397779adfedebd [diff] [blame] |
[base] close zip archive when parsing fails Test: manual Change-Id: I54c054da6000df15dba81ad211eb1cf61e88c5a8
diff --git a/libs/androidfw/ApkAssets.cpp b/libs/androidfw/ApkAssets.cpp index 9f4a619..cf2ef30 100644 --- a/libs/androidfw/ApkAssets.cpp +++ b/libs/androidfw/ApkAssets.cpp
@@ -116,6 +116,7 @@ if (result != 0) { LOG(ERROR) << "Failed to open APK '" << path << "' " << ::ErrorCodeString(result); + ::CloseArchive(unmanaged_handle); return {}; }