Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: 7ab9c3812d am: 29ef12f777 am: 1c35b48253
am: e4cf63be78

Change-Id: I4fca7ee7e8164e049d966822670d486c3e3fc183
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);