summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-12-16 09:32:10 +1100
committerAndrew Tridgell <tridge@samba.org>2009-12-16 20:56:20 +1100
commitd31b6360d64eb821da07f4342093d1323db7b4dd (patch)
treee75c461005a679ebcda7a59cafd9eb71101020db /source4
parente22e336f41e2196524a5f70e096c61905b7676ae (diff)
downloadsamba-d31b6360d64eb821da07f4342093d1323db7b4dd.tar.gz
samba-d31b6360d64eb821da07f4342093d1323db7b4dd.tar.bz2
samba-d31b6360d64eb821da07f4342093d1323db7b4dd.zip
s4-ntvfs: try to fix bug 6989
bug 6989 is a rare crash that has occurred in production. My best guess as to the cause is the talloc_free() not being specific enough as to which parent needs to be freed.
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 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);
}