[Spice-devel] [PATCH 10/23] simplify smartcard_channel_release_pipe_item

Jonathon Jongsma jjongsma at redhat.com
Tue May 17 20:00:34 UTC 2016


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>

On Mon, 2016-05-16 at 14:31 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  server/smartcard.c | 6 +-----
>  1 file changed, 1 insertion(+), 5 deletions(-)
> 
> diff --git a/server/smartcard.c b/server/smartcard.c
> index b2fb766..c8e9eb0 100644
> --- a/server/smartcard.c
> +++ b/server/smartcard.c
> @@ -507,11 +507,7 @@ static void smartcard_channel_send_item(RedChannelClient
> *rcc, RedPipeItem *item
>  static void smartcard_channel_release_pipe_item(RedChannelClient *rcc,
>                                        RedPipeItem *item, int item_pushed)
>  {
> -    if (item->type == RED_PIPE_ITEM_TYPE_SMARTCARD_DATA) {
> -        red_pipe_item_unref(item);
> -    } else {
> -        free(item);
> -    }
> +    red_pipe_item_unref(item);
>  }
>  
>  static void smartcard_channel_on_disconnect(RedChannelClient *rcc)


More information about the Spice-devel mailing list