summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-09-16 01:32:52 +0200
committerAndroid Git Automerger <android-git-automerger@android.com>2010-09-16 01:32:52 +0200
commit6b1ff61f62db82adf8e47c121cd13c29831ad21b (patch)
tree8c6fc308e9e26895a46aca7ba7e930dd83fe6a44 /updater
parentam bd4bc088: am d12560aa: add the ability to seek to a raw location while reading MTD partition (diff)
parentam 8e5e4dad: close update package before installing; allow remount (diff)
downloadandroid_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.gz
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.bz2
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.lz
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.xz
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.tar.zst
android_bootable_recovery-6b1ff61f62db82adf8e47c121cd13c29831ad21b.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;