summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-09-15 06:32:14 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-15 06:32:14 +0200
commit858f0a763d0f736eb721f54257b6164886bfcbfc (patch)
treeb1dd9d0f6408811e71dade4f1ccbc52f18114a5e /updater
parentam d12560aa: add the ability to seek to a raw location while reading MTD partition (diff)
parentclose update package before installing; allow remount (diff)
downloadandroid_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar
android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.gz
android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.bz2
android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.lz
android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.xz
android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.tar.zst
android_bootable_recovery-858f0a763d0f736eb721f54257b6164886bfcbfc.zip
Diffstat (limited to 'updater')
-rw-r--r--updater/updater.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/updater/updater.c b/updater/updater.c
index 6537a94ba..aa626d29b 100644
--- a/updater/updater.c
+++ b/updater/updater.c
@@ -136,7 +136,9 @@ int main(int argc, char** argv) {
free(result);
}
- mzCloseZipArchive(&za);
+ if (updater_info.package_zip) {
+ mzCloseZipArchive(updater_info.package_zip);
+ }
free(script);
return 0;