Fix a double free in the named pipe code.

oldstable
Mike McCormack 2004-07-15 18:59:58 +00:00 committed by Alexandre Julliard
parent 4651067f43
commit 99a6efa1af
1 changed files with 7 additions and 1 deletions

View File

@ -428,7 +428,13 @@ static void check_flushed( void *arg )
server->flush_poll = add_timeout_user( &tv, check_flushed, server );
}
else
notify_empty( server );
{
/* notify_empty( server ); */
server->flush_poll = NULL;
set_event( server->event );
release_object( server->event );
server->event = NULL;
}
}
static int pipe_server_flush( struct fd *fd, struct event **event )