Fix idmap leak in zygote process am: 0244ca8d10 am: 82537abc3b am: 85afb42c16 am: b4b2203c5e

am: fb74b8773a

Change-Id: I4a2630b7217462897070029a613489c7909aedf6
This commit is contained in:
neo.chae
2016-11-11 00:02:56 +00:00
committed by android-build-merger

View File

@ -814,6 +814,7 @@ void AssetManager::addSystemOverlays(const char* pathOverlaysList,
sharedRes->add(oass, oidmap, offset + 1, false); sharedRes->add(oass, oidmap, offset + 1, false);
const_cast<AssetManager*>(this)->mAssetPaths.add(oap); const_cast<AssetManager*>(this)->mAssetPaths.add(oap);
const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap); const_cast<AssetManager*>(this)->mZipSet.addOverlay(targetPackagePath, oap);
delete oidmap;
} }
} }
fclose(fin); fclose(fin);