summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ideviceinstaller.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/ideviceinstaller.c b/src/ideviceinstaller.c
index d13fdb9..86c6fe7 100644
--- a/src/ideviceinstaller.c
+++ b/src/ideviceinstaller.c
@@ -520,13 +520,12 @@ run_again:
520 /* extract iTunesMetadata.plist from package */ 520 /* extract iTunesMetadata.plist from package */
521 char *zbuf = NULL; 521 char *zbuf = NULL;
522 uint32_t len = 0; 522 uint32_t len = 0;
523 if (zip_f_get_contents(zf, "iTunesMetadata.plist", 0, &zbuf, &len) < 0) { 523 if (zip_f_get_contents(zf, "iTunesMetadata.plist", 0, &zbuf, &len) == 0) {
524 zip_unchange_all(zf); 524 meta = plist_new_data(zbuf, len);
525 zip_close(zf); 525 }
526 goto leave_cleanup; 526 if (zbuf) {
527 free(zbuf);
527 } 528 }
528 meta = plist_new_data(zbuf, len);
529 free(zbuf);
530 529
531 /* we need to get the CFBundleName first */ 530 /* we need to get the CFBundleName first */
532 plist_t info = NULL; 531 plist_t info = NULL;