Skip to content

Commit 5e89e5b

Browse files
committed
fix: clear caches in dex module when starting a new scan.
1 parent d992139 commit 5e89e5b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/src/modules/dex/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ thread_local!(
2323

2424
#[module_main]
2525
fn main(data: &[u8], _meta: Option<&[u8]>) -> Result<Dex, ModuleError> {
26+
CHECKSUM_CACHE.with(|cache| *cache.borrow_mut() = None);
27+
SIGNATURE_CACHE.with(|cache| *cache.borrow_mut() = None);
2628
match parser::Dex::parse(data) {
2729
Ok(dex) => Ok(dex.into()),
2830
Err(_) => {

0 commit comments

Comments
 (0)