summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
Diffstat (limited to 'source4')
-rw-r--r--source4/ntvfs/posix/pvfs_wait.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/ntvfs/posix/pvfs_wait.c b/source4/ntvfs/posix/pvfs_wait.c
index 6e8324183f..3d0bb465e3 100644
--- a/source4/ntvfs/posix/pvfs_wait.c
+++ b/source4/ntvfs/posix/pvfs_wait.c
@@ -76,9 +76,9 @@ static void pvfs_wait_dispatch(struct messaging_context *msg, void *private, uin
structure is not destroyed when the async request reply is
sent, which would cause problems with the other ntvfs
modules above us */
- talloc_increase_ref_count(req);
+ talloc_reference(msg, req);
ntvfs_async_setup(pwait->req, pwait);
- talloc_free(req);
+ talloc_unlink(msg, req);
}