diff options
author | neo.chae <neo.chae@lge.com> | 2016-11-01 00:02:38 +0900 |
---|---|---|
committer | gitbuildkicker <android-build@google.com> | 2016-11-30 10:49:15 -0800 |
commit | 79a52bb10fa496c551f9cc7d19c47f482680aca0 (patch) | |
tree | 8576d8a869b253f173f2bf3da39dcf07f037e9d6 | |
parent | 9b2c33c32b9a2c55e99611eb27a25cc15cf81a81 (diff) | |
download | base-79a52bb10fa496c551f9cc7d19c47f482680aca0.tar.gz |
Fix idmap leak in zygote process
Fix a idmap leak in AssetManager::addSystemOverlays.
And, The fix could also prevent fd leak of idmap.
Test: none
Bug: 32691930
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
(cherry picked from commit 6a742a38509693f8b39ee9a5ad2803fca12688bf)
Change-Id: Idc4af77db2b0cb739bd6b009b6af0f9123be1aac
(cherry picked from commit 0244ca8d10dfc27e14f481fe649b89f7638c48eb)
-rw-r--r-- | libs/androidfw/AssetManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/androidfw/AssetManager.cpp b/libs/androidfw/AssetManager.cpp index 07044d0e9d61..7a103430feb5 100644 --- a/libs/androidfw/AssetManager.cpp +++ b/libs/androidfw/AssetManager.cpp @@ -804,6 +804,7 @@ void AssetManager::addSystemOverlays(const char* pathOverlaysList, sharedRes->add(oass, oidmap, offset + 1, false); const_cast<AssetManager*>(this)->mAssetPaths.add(oap); const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap); + delete oidmap; } } |