Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)"

am: 7ab9c3812d

Change-Id: I779a671ef4756fb149dc1bd5823eb85f0e846269
This commit is contained in:
Tao Bao
2017-02-01 05:15:50 +00:00
committed by android-build-merger

View File

@@ -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);