summaryrefslogtreecommitdiffstats
path: root/updater
diff options
context:
space:
mode:
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;