[libFuzzer] when re-running for lsan, don't look at the coverage

llvm-svn: 283411
This commit is contained in:
Kostya Serebryany 2016-10-05 23:31:01 +00:00
parent edc2baddf8
commit 3b564e9765
1 changed files with 1 additions and 1 deletions

View File

@ -631,7 +631,7 @@ void Fuzzer::TryDetectingAMemoryLeak(const uint8_t *Data, size_t Size,
// Run the target once again, but with lsan disabled so that if there is
// a real leak we do not report it twice.
EF->__lsan_disable();
RunOne(Data, Size);
ExecuteCallback(Data, Size);
EF->__lsan_enable();
if (!HasMoreMallocsThanFrees) return; // a leak is unlikely.
if (NumberOfLeakDetectionAttempts++ > 1000) {