Skip to content

Commit

Permalink
fuzzers/filename_fuzzer.cpp: fix memleak [ci skip]
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Oct 31, 2023
1 parent 587fa44 commit 11c032d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuzzers/filename_fuzzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ int LLVMFuzzerTestOneInput(const uint8_t *buf, size_t len)
VSIFCloseL(fp);
delete GDALDataset::Open(osRealFilename.c_str());
}
else
{
VSIFree(paby);
}

VSIRmdirRecursive("/vsimem/");

Expand Down

0 comments on commit 11c032d

Please sign in to comment.