nfs: 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 4bfeac6591
commit 3a24cce289

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

Loading…
Cancel
Save