Re: [PATCH v2 2/9] worker: do not leak cursor after disconnecting clients

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Tue, 2016-01-26 at 09:44 +0000, Frediano Ziglio wrote:
> This also prevents future use of a NULL pointer.
> 
Can this happen now? Is it related to the PATCH 5/9 - function
cursor_is_connected() ?

Pavel

> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/red-worker.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/server/red-worker.c b/server/red-worker.c
> index 9a392ec..dd293f7 100644
> --- a/server/red-worker.c
> +++ b/server/red-worker.c
> @@ -455,7 +455,6 @@ static void flush_cursor_commands(RedWorker
> *worker)
>              if (spice_get_monotonic_time_ns() >= end_time) {
>                  spice_warning("flush cursor timeout");
>                  cursor_channel_disconnect(worker->cursor_channel);
> -                worker->cursor_channel = NULL;
>              } else {
>                  sleep_count++;
>                  usleep(DISPLAY_CLIENT_RETRY_INTERVAL);
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]