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:
parent
11602701d4
commit
1431665cb0
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue