sparse_fuzzer: Bug fix

Resolved Memory Leak

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

Change-Id: I8df4be935ff586efeebf7e32dccc52dbf82e5076
This commit is contained in:
Devendra Singhi 2022-04-04 14:03:55 +05:30
parent 11602701d4
commit 1431665cb0

View file

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