Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: 7ab9c3812d
am: 29ef12f777
Change-Id: I95295f72efb73b6b40a2cd420514204b4bc93d63
This commit is contained in:
@@ -198,6 +198,7 @@ unsigned char* ReadZip(const char* filename,
|
|||||||
if (fread(img, 1, sz, f) != sz) {
|
if (fread(img, 1, sz, f) != sz) {
|
||||||
printf("failed to read \"%s\" %s\n", filename, strerror(errno));
|
printf("failed to read \"%s\" %s\n", filename, strerror(errno));
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
free(img);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|||||||
Reference in New Issue
Block a user