diff --git a/rust/src/smb/smb.rs b/rust/src/smb/smb.rs index bd563efc4b..054e65ab8e 100644 --- a/rust/src/smb/smb.rs +++ b/rust/src/smb/smb.rs @@ -566,6 +566,8 @@ impl SMBTransaction { } pub fn free(&mut self) { + debug_validate_bug_on!(self.tx_data.files_opened > 1); + debug_validate_bug_on!(self.tx_data.files_logged > 1); if self.events != std::ptr::null_mut() { sc_app_layer_decoder_events_free_events(&mut self.events); }