summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-05-24 11:57:02 +0200
committerStefan Metzmacher <metze@samba.org>2012-05-24 18:16:37 +0200
commit0beede33a7034d63912bed301e3e7340f8d2ea86 (patch)
tree19dad193731e757e6dcdf25350fc214181878c0b
parentb452fb30f79c5effa508b891bcb453de8f452286 (diff)
downloadsamba-0beede33a7034d63912bed301e3e7340f8d2ea86.tar.gz
s4:smb_server/smb: fix talloc_free() bug
ERROR: talloc_free with references at ../source4/smb_server/smb/receive.c:637 reference at ../source4/ntvfs/posix/pvfs_wait.c:86 metze
-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 b100757b551..34438349018 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;