mountlib: fix VFS instance leaks on mount failures and unmounts

This commit is contained in:
Hakan İSMAİL
2026-08-18 09:03:12 +01:00
committed by Nick Craig-Wood
parent f425f8d466
commit 45ddf3a5f2
5 changed files with 27 additions and 19 deletions
-2
View File
@@ -241,8 +241,6 @@ func mount(VFS *vfs.VFS, mountpoint string, opt *mountlib.Options) (<-chan error
// }
umount := func() error {
// Shutdown the VFS
fsys.VFS.Shutdown()
return server.Unmount()
}