diff options
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/posix/pvfs_wait.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_wait.c b/source4/ntvfs/posix/pvfs_wait.c index 4b757e0be1..e4175ca8cc 100644 --- a/source4/ntvfs/posix/pvfs_wait.c +++ b/source4/ntvfs/posix/pvfs_wait.c @@ -105,7 +105,6 @@ static int pvfs_wait_destructor(void *ptr) { struct pvfs_wait *pwait = ptr; messaging_deregister(pwait->msg_ctx, pwait->msg_type, pwait); - event_remove_timed(pwait->ev, pwait->te); DLIST_REMOVE(pwait->pvfs->wait_list, pwait); return 0; } @@ -145,6 +144,7 @@ static int pvfs_wait_destructor(void *ptr) te.handler = pvfs_wait_timeout; te.private = pwait; pwait->te = event_add_timed(pwait->ev, &te); + talloc_steal(pwait, pwait->te); /* register with the messaging subsystem for this message type */ |