summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-02-01 06:23:22 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-02-01 06:23:22 +0100
commit3e41d224006b8e3c74bca7d41197e779af9d3689 (patch)
treea5691719cd5fa1a9040819d84ffd71659dbd4518
parentMerge "recovery: Add screensaver mode." am: 389a29193c am: 2684259c34 am: 79ce31073a (diff)
parentMerge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: 7ab9c3812d am: 29ef12f777 (diff)
downloadandroid_bootable_recovery-3e41d224006b8e3c74bca7d41197e779af9d3689.tar
android_bootable_recovery-3e41d224006b8e3c74bca7d41197e779af9d3689.tar.gz
android_bootable_recovery-3e41d224006b8e3c74bca7d41197e779af9d3689.tar.bz2
android_bootable_recovery-3e41d224006b8e3c74bca7d41197e779af9d3689.tar.lz
android_bootable_recovery-3e41d224006b8e3c74bca7d41197e779af9d3689.tar.xz
android_bootable_recovery-3e41d224006b8e3c74bca7d41197e779af9d3689.tar.zst
android_bootable_recovery-3e41d224006b8e3c74bca7d41197e779af9d3689.zip
-rw-r--r--applypatch/imgdiff.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/applypatch/imgdiff.cpp b/applypatch/imgdiff.cpp
index 395150614..2f0e1651c 100644
--- a/applypatch/imgdiff.cpp
+++ b/applypatch/imgdiff.cpp
@@ -198,6 +198,7 @@ unsigned char* ReadZip(const char* filename,
if (fread(img, 1, sz, f) != sz) {
printf("failed to read \"%s\" %s\n", filename, strerror(errno));
fclose(f);
+ free(img);
return NULL;
}
fclose(f);