summaryrefslogtreecommitdiffstats
path: root/updater/updater.c
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2010-09-15 03:06:55 +0200
committerDoug Zongker <dougz@android.com>2010-09-15 06:26:38 +0200
commit8e5e4dada713609c9b2c45ea9cf4572bb89ef761 (patch)
treeb1dd9d0f6408811e71dade4f1ccbc52f18114a5e /updater/updater.c
parentadd the ability to seek to a raw location while reading MTD partition (diff)
downloadandroid_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.gz
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.bz2
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.lz
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.xz
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.tar.zst
android_bootable_recovery-8e5e4dada713609c9b2c45ea9cf4572bb89ef761.zip
Diffstat (limited to '')
-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;