smb: explicity free files

In preparation of adding an argument to the free functions which
means the drop trait can't be used anymore.
pull/8421/head
Victor Julien 3 years ago
parent 3a24cce289
commit 4b1e9f7c21

@ -528,6 +528,10 @@ impl SMBTransaction {
impl Drop for SMBTransaction {
fn drop(&mut self) {
if let Some(SMBTransactionTypeData::FILE(ref mut tdf)) = self.type_data {
tdf.files.files_ts.free();
tdf.files.files_tc.free();
}
self.free();
}
}

Loading…
Cancel
Save