Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d255b661 authored by Tao Bao's avatar Tao Bao Committed by Gerrit Code Review
Browse files

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

parents 1528def4 3a5177b1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -224,6 +224,7 @@ unsigned char* ReadZip(const char* filename,
  for (i = 0; i < cdcount; ++i) {
    if (!(cd[0] == 0x50 && cd[1] == 0x4b && cd[2] == 0x01 && cd[3] == 0x02)) {
      printf("bad central directory entry %d\n", i);
      free(temp_entries);
      return NULL;
    }

@@ -1062,6 +1063,9 @@ int main(int argc, char** argv) {
    }
  }

  free(patch_data);
  free(patch_size);

  fclose(f);

  return 0;