server: Fix leak of async handle in pipe_server_flush.

This commit is contained in:
Sebastian Lackner 2015-05-08 18:02:20 +02:00 committed by Alexandre Julliard
parent 51e77324dd
commit b3fb5992b6
1 changed files with 1 additions and 0 deletions

View File

@ -563,6 +563,7 @@ static obj_handle_t pipe_server_flush( struct fd *fd, const async_data_t *async_
if (!server->flush_poll)
server->flush_poll = add_timeout_user( -TICKS_PER_SEC / 10, check_flushed, server );
if (blocking) handle = alloc_handle( current->process, async, SYNCHRONIZE, 0 );
release_object( async );
set_error( STATUS_PENDING );
}
return handle;