summaryrefslogtreecommitdiff
path: root/source4/smb_server
diff options
context:
space:
mode:
Diffstat (limited to 'source4/smb_server')
-rw-r--r--source4/smb_server/smb/receive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb/receive.c b/source4/smb_server/smb/receive.c
index b100757b55..3443834901 100644
--- a/source4/smb_server/smb/receive.c
+++ b/source4/smb_server/smb/receive.c
@@ -634,7 +634,7 @@ void smbsrv_chain_reply(struct smbsrv_request *req)
/* cleanup somestuff for the next request */
DLIST_REMOVE(req->smb_conn->requests, req);
- talloc_free(req->ntvfs);
+ talloc_unlink(req, req->ntvfs);
req->ntvfs = NULL;
talloc_free(req->io_ptr);
req->io_ptr = NULL;