ksud: fix incorrecy RAII

This commit is contained in:
tiann
2023-02-02 19:21:37 +08:00
parent dc902b16d4
commit 0bc36b3299
3 changed files with 11 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ impl AutoMountExt4 {
#[cfg(target_os = "android")]
impl Drop for AutoMountExt4 {
fn drop(&mut self) {
log::info!("AutoMountExt4 drop: {}", self.mnt);
let _ = self.umount();
}
}