summaryrefslogtreecommitdiff
path: root/source4/ntvfs
diff options
context:
space:
mode:
Diffstat (limited to 'source4/ntvfs')
-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 5552ab0d1b..e6977efe5d 100644
--- a/source4/ntvfs/posix/pvfs_wait.c
+++ b/source4/ntvfs/posix/pvfs_wait.c
@@ -102,9 +102,9 @@ static void pvfs_wait_timeout(struct tevent_context *ev,
pwait->reason = PVFS_WAIT_TIMEOUT;
- talloc_increase_ref_count(req);
+ talloc_reference(ev, req);
ntvfs_async_setup(pwait->req, pwait);
- talloc_free(req);
+ talloc_unlink(ev, req);
}