diff options
author | neo.chae <neo.chae@lge.com> | 2016-11-01 00:02:38 +0900 |
---|---|---|
committer | neo.chae <neo.chae@lge.com> | 2016-11-01 08:53:35 +0900 |
commit | 6a742a38509693f8b39ee9a5ad2803fca12688bf (patch) | |
tree | 460fe55631419604757f724c06c3c212010c2f12 /libs/androidfw/AssetManager.cpp | |
parent | 678ba24533139c1e54a9729f3ad9f4614da8fbad (diff) |
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
Change-Id: Iff8831e1951a1ca103821f64a612a8b28d2c14e7
Signed-off-by: Hyangseok Chae <neo.chae@lge.com>
Diffstat (limited to 'libs/androidfw/AssetManager.cpp')
-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; } } |