diff options
author | Rahul Chaudhry <rahulchaudhry@google.com> | 2016-11-16 01:18:46 +0100 |
---|---|---|
committer | Rahul Chaudhry <rahulchaudhry@google.com> | 2016-11-16 01:18:46 +0100 |
commit | 3a5177b16d574c902183d1322367fe7db08fffc1 (patch) | |
tree | 9aef3b52ec022d3cc4d52130275227c0e8d1e238 /applypatch/imgdiff.cpp | |
parent | Merge "Add .clang-format style file." (diff) | |
download | android_bootable_recovery-3a5177b16d574c902183d1322367fe7db08fffc1.tar android_bootable_recovery-3a5177b16d574c902183d1322367fe7db08fffc1.tar.gz android_bootable_recovery-3a5177b16d574c902183d1322367fe7db08fffc1.tar.bz2 android_bootable_recovery-3a5177b16d574c902183d1322367fe7db08fffc1.tar.lz android_bootable_recovery-3a5177b16d574c902183d1322367fe7db08fffc1.tar.xz android_bootable_recovery-3a5177b16d574c902183d1322367fe7db08fffc1.tar.zst android_bootable_recovery-3a5177b16d574c902183d1322367fe7db08fffc1.zip |
Diffstat (limited to 'applypatch/imgdiff.cpp')
-rw-r--r-- | applypatch/imgdiff.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/applypatch/imgdiff.cpp b/applypatch/imgdiff.cpp index 7c5bb866d..e78a60477 100644 --- a/applypatch/imgdiff.cpp +++ b/applypatch/imgdiff.cpp @@ -224,6 +224,7 @@ unsigned char* ReadZip(const char* filename, for (i = 0; i < cdcount; ++i) { if (!(cd[0] == 0x50 && cd[1] == 0x4b && cd[2] == 0x01 && cd[3] == 0x02)) { printf("bad central directory entry %d\n", i); + free(temp_entries); return NULL; } @@ -1062,6 +1063,9 @@ int main(int argc, char** argv) { } } + free(patch_data); + free(patch_size); + fclose(f); return 0; |