summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author neo.chae <neo.chae@lge.com> 2016-11-09 20:13:07 +0000
committer android-build-merger <android-build-merger@google.com> 2016-11-09 20:13:07 +0000
commit85afb42c16c147384c4c26a28b3e7aba7a217e1c (patch)
tree542755e096d2da9b4775a1e97a046ab3e1c60f1e
parent34de2a2d4507c366cfc791bc454e75efef6a4cdd (diff)
parent82537abc3bc1353746c7d53ee993dab130b7c4ea (diff)
Fix idmap leak in zygote process am: 0244ca8d10
am: 82537abc3b Change-Id: I83d338ebfdefd0f935c4cfb14c3b15efca1cce0f
-rw-r--r--libs/androidfw/AssetManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/androidfw/AssetManager.cpp b/libs/androidfw/AssetManager.cpp
index de6a33cf15e7..b54f0c159090 100644
--- a/libs/androidfw/AssetManager.cpp
+++ b/libs/androidfw/AssetManager.cpp
@@ -798,6 +798,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;
}
}
fclose(fin);