Merge "bootable/recovery: cleanup compiler warnings (potential leak of memory)" am: d255b661a1 am: be54feda58
am: 83b649ee1d
Change-Id: I785c6ec399ee2695af9276b47559f93d7d010a48
This commit is contained in:
@@ -224,6 +224,7 @@ unsigned char* ReadZip(const char* filename,
|
|||||||
for (i = 0; i < cdcount; ++i) {
|
for (i = 0; i < cdcount; ++i) {
|
||||||
if (!(cd[0] == 0x50 && cd[1] == 0x4b && cd[2] == 0x01 && cd[3] == 0x02)) {
|
if (!(cd[0] == 0x50 && cd[1] == 0x4b && cd[2] == 0x01 && cd[3] == 0x02)) {
|
||||||
printf("bad central directory entry %d\n", i);
|
printf("bad central directory entry %d\n", i);
|
||||||
|
free(temp_entries);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1062,6 +1063,9 @@ int main(int argc, char** argv) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
free(patch_data);
|
||||||
|
free(patch_size);
|
||||||
|
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user