From 037b9551ea70ce95df0cdbd752a1b5c58f729e9c Mon Sep 17 00:00:00 2001 From: "Dongjia \"toka\" Zhang" Date: Wed, 26 Apr 2023 12:00:36 +0200 Subject: [PATCH] Fix #1228 (#1229) --- libafl/src/corpus/inmemory_ondisk.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libafl/src/corpus/inmemory_ondisk.rs b/libafl/src/corpus/inmemory_ondisk.rs index dbdc213f9b..819f4bbc6a 100644 --- a/libafl/src/corpus/inmemory_ondisk.rs +++ b/libafl/src/corpus/inmemory_ondisk.rs @@ -377,7 +377,9 @@ where } // also try to remove the corresponding `.lafl_lock` file if it still exists // (even though it shouldn't exist anymore, at this point in time) - fs::remove_file(self.dir_path.join(format!(".{filename}.lafl_lock")))?; + drop(fs::remove_file( + self.dir_path.join(format!(".{filename}.lafl_lock")), + )); } Ok(()) }