diff options
author | Tao Bao <tbao@google.com> | 2017-02-01 06:15:50 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-02-01 06:15:50 +0100 |
commit | 29ef12f777849843f16226b5f1a6cbc149d0c6c8 (patch) | |
tree | 63c89d48a4e7fc1c4a177c44b1f62e4dbe79f2c9 | |
parent | Merge "recovery: Add screensaver mode." (diff) | |
parent | Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" (diff) | |
download | android_bootable_recovery-29ef12f777849843f16226b5f1a6cbc149d0c6c8.tar android_bootable_recovery-29ef12f777849843f16226b5f1a6cbc149d0c6c8.tar.gz android_bootable_recovery-29ef12f777849843f16226b5f1a6cbc149d0c6c8.tar.bz2 android_bootable_recovery-29ef12f777849843f16226b5f1a6cbc149d0c6c8.tar.lz android_bootable_recovery-29ef12f777849843f16226b5f1a6cbc149d0c6c8.tar.xz android_bootable_recovery-29ef12f777849843f16226b5f1a6cbc149d0c6c8.tar.zst android_bootable_recovery-29ef12f777849843f16226b5f1a6cbc149d0c6c8.zip |
-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 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); |