From 1cd412aa19b1c0185097bb91a68d9f7146d3c290 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 8 Feb 2007 03:01:47 +0000 Subject: r21234: fixed a subtle bug with talloc reference counting and async ntvfs requests. (This used to be commit 6a2ba01f155266add71319c1dbc3442eb0c2c751) --- source4/ntvfs/posix/pvfs_wait.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/ntvfs') 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); } -- cgit