summaryrefslogtreecommitdiffstats
path: root/updater/updater.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-05-03 01:54:02 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-05-03 01:54:02 +0200
commita616f0d4763af7aa9182f1846deb0f959d67b01b (patch)
treee04297c789fd1098489767882d72bbd4cb82636f /updater/updater.cpp
parentMerge "recovery: Change install_package() to take std::string." am: ba365180d3 am: c0c4ae1583 am: a0fb95a386 (diff)
parentMerge "Move sysMapFile and sysReleaseMap into MemMapping class." am: fe7eecff4c am: 08d9ede8f2 (diff)
downloadandroid_bootable_recovery-a616f0d4763af7aa9182f1846deb0f959d67b01b.tar
android_bootable_recovery-a616f0d4763af7aa9182f1846deb0f959d67b01b.tar.gz
android_bootable_recovery-a616f0d4763af7aa9182f1846deb0f959d67b01b.tar.bz2
android_bootable_recovery-a616f0d4763af7aa9182f1846deb0f959d67b01b.tar.lz
android_bootable_recovery-a616f0d4763af7aa9182f1846deb0f959d67b01b.tar.xz
android_bootable_recovery-a616f0d4763af7aa9182f1846deb0f959d67b01b.tar.zst
android_bootable_recovery-a616f0d4763af7aa9182f1846deb0f959d67b01b.zip
Diffstat (limited to 'updater/updater.cpp')
-rw-r--r--updater/updater.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/updater/updater.cpp b/updater/updater.cpp
index c09e267a5..749c86a1f 100644
--- a/updater/updater.cpp
+++ b/updater/updater.cpp
@@ -89,7 +89,7 @@ int main(int argc, char** argv) {
const char* package_filename = argv[3];
MemMapping map;
- if (sysMapFile(package_filename, &map) != 0) {
+ if (!map.MapFile(package_filename)) {
LOG(ERROR) << "failed to map package " << argv[3];
return 3;
}
@@ -213,7 +213,6 @@ int main(int argc, char** argv) {
if (updater_info.package_zip) {
CloseArchive(updater_info.package_zip);
}
- sysReleaseMap(&map);
return 0;
}