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

Commit 1431665c authored by Devendra Singhi's avatar Devendra Singhi
Browse files

sparse_fuzzer: Bug fix

Resolved Memory Leak

Test: ./sparse_fuzzer clusterfuzz-testcase-minimized-sparse_fuzzer-6050329726943232
Bug: 214604770

Change-Id: I8df4be935ff586efeebf7e32dccc52dbf82e5076
parent 11602701
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -23,5 +23,7 @@ extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
  if (!file) {
      return 0;
  }
  return sparse_file_callback(file, false, false, WriteCallback, nullptr);
  int32_t result = sparse_file_callback(file, false, false, WriteCallback, nullptr);
  sparse_file_destroy(file);
  return result;
}