summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs')
-rw-r--r--source4/ntvfs/cifs/vfs_cifs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/ntvfs/cifs/vfs_cifs.c b/source4/ntvfs/cifs/vfs_cifs.c
index 37c0ed64d1..1a0f1f2f71 100644
--- a/source4/ntvfs/cifs/vfs_cifs.c
+++ b/source4/ntvfs/cifs/vfs_cifs.c
@@ -168,8 +168,7 @@ static NTSTATUS cvfs_disconnect(struct ntvfs_module_context *ntvfs,
{
struct cvfs_private *private = ntvfs->private_data;
- smb_tree_disconnect(private->tree);
- talloc_free(private->tree);
+ talloc_free(private);
return NT_STATUS_OK;
}