summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/smb2_tcon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/smb2_tcon.c b/source3/smbd/smb2_tcon.c
index f3efb83c1d..0f765d662a 100644
--- a/source3/smbd/smb2_tcon.c
+++ b/source3/smbd/smb2_tcon.c
@@ -128,7 +128,7 @@ static int smbd_smb2_tcon_destructor(struct smbd_smb2_tcon *tcon)
DLIST_REMOVE(tcon->session->tcons.list, tcon);
if (tcon->compat_conn) {
- conn_free(tcon->compat_conn);
+ close_cnum(tcon->compat_conn, tcon->session->vuid);
}
tcon->compat_conn = NULL;