commit | 1c35b48253f8caba7df1f2ba7dbafc1113010a6e | [log] [tgz] |
---|---|---|
author | Tao Bao <tbao@google.com> | Wed Feb 01 05:18:26 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Feb 01 05:18:26 2017 +0000 |
tree | 3058d3543c0a543d7e1da043e1512b3daa40a1c8 | |
parent | 79ce31073a60e6d0a4ddc862e1e182b4d165c553 [diff] | |
parent | 29ef12f777849843f16226b5f1a6cbc149d0c6c8 [diff] |
Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: 7ab9c3812d am: 29ef12f777 Change-Id: I95295f72efb73b6b40a2cd420514204b4bc93d63
diff --git a/applypatch/imgdiff.cpp b/applypatch/imgdiff.cpp index 3951506..2f0e165 100644 --- a/applypatch/imgdiff.cpp +++ b/applypatch/imgdiff.cpp
@@ -198,6 +198,7 @@ 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);