From 6c14b0133dede38294a812be7f5f5bd5ec3d498b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 23 Jan 2005 12:17:45 +0000 Subject: r4944: every event_add_*() caller was having to call talloc_steal() to take control of the event, so instead build that into the function. If you pass NULL as mem_ctx then it leaves it as a child of the events structure. (This used to be commit 7f981b9ed96f39027cbfd500f41e0c2be64cbb50) --- source4/ntvfs/posix/pvfs_wait.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/ntvfs/posix/pvfs_wait.c') diff --git a/source4/ntvfs/posix/pvfs_wait.c b/source4/ntvfs/posix/pvfs_wait.c index e4175ca8cc..da36ac2239 100644 --- a/source4/ntvfs/posix/pvfs_wait.c +++ b/source4/ntvfs/posix/pvfs_wait.c @@ -143,8 +143,7 @@ static int pvfs_wait_destructor(void *ptr) te.next_event = end_time; te.handler = pvfs_wait_timeout; te.private = pwait; - pwait->te = event_add_timed(pwait->ev, &te); - talloc_steal(pwait, pwait->te); + pwait->te = event_add_timed(pwait->ev, &te, pwait); /* register with the messaging subsystem for this message type */ -- cgit