diff options
author | Rahul Chaudhry <rahulchaudhry@google.com> | 2016-12-07 00:10:41 +0100 |
---|---|---|
committer | Rahul Chaudhry <rahulchaudhry@google.com> | 2016-12-07 00:10:41 +0100 |
commit | 8b640ffabc3f7c81c94dcbba6fec3436f85383fb (patch) | |
tree | 43ab2d25ed66fedc404ec1866799e7dade1fdb12 /applypatch | |
parent | Merge "recovery: Clean up get_args()." (diff) | |
download | android_bootable_recovery-8b640ffabc3f7c81c94dcbba6fec3436f85383fb.tar android_bootable_recovery-8b640ffabc3f7c81c94dcbba6fec3436f85383fb.tar.gz android_bootable_recovery-8b640ffabc3f7c81c94dcbba6fec3436f85383fb.tar.bz2 android_bootable_recovery-8b640ffabc3f7c81c94dcbba6fec3436f85383fb.tar.lz android_bootable_recovery-8b640ffabc3f7c81c94dcbba6fec3436f85383fb.tar.xz android_bootable_recovery-8b640ffabc3f7c81c94dcbba6fec3436f85383fb.tar.zst android_bootable_recovery-8b640ffabc3f7c81c94dcbba6fec3436f85383fb.zip |
Diffstat (limited to 'applypatch')
-rw-r--r-- | applypatch/imgdiff.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/applypatch/imgdiff.cpp b/applypatch/imgdiff.cpp index 528daf113..7d6ebab6e 100644 --- a/applypatch/imgdiff.cpp +++ b/applypatch/imgdiff.cpp @@ -194,6 +194,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); |