From cbd954c0d4c5718442b71e2b65fd5a731765c6d5 Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 20 Nov 2025 18:01:48 -0500 Subject: [WARP] Fix leaking binary view on empty views Can be triggered by trying to run the processor on a file with no functions. Found this while doing misc performance testing on windows. --- plugins/warp/src/processor.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins') diff --git a/plugins/warp/src/processor.rs b/plugins/warp/src/processor.rs index 4f0372e6..2319c5fc 100644 --- a/plugins/warp/src/processor.rs +++ b/plugins/warp/src/processor.rs @@ -664,6 +664,8 @@ impl WarpFileProcessor { if view.functions().is_empty() { self.state .set_file_state(path.clone(), ProcessingFileState::Processed); + // Close the view manually, see comment in [`BinaryView`]. + view.file().close(); return Err(ProcessingError::SkippedFile(path)); } -- cgit v1.3.1