summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2007-02-08 03:01:47 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:44:50 -0500
commit1cd412aa19b1c0185097bb91a68d9f7146d3c290 (patch)
tree9996976c9177fbd8ee91553e52b4aab2828628f8
parenta2eff69b4b26ba6b3227b4bbe4557bc9b618d400 (diff)
downloadsamba-1cd412aa19b1c0185097bb91a68d9f7146d3c290.tar.gz
samba-1cd412aa19b1c0185097bb91a68d9f7146d3c290.tar.bz2
samba-1cd412aa19b1c0185097bb91a68d9f7146d3c290.zip
r21234: fixed a subtle bug with talloc reference counting and async ntvfs
requests. (This used to be commit 6a2ba01f155266add71319c1dbc3442eb0c2c751)
-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);
}