Acked-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx> On Mon, 2016-05-16 at 14:31 +0100, Frediano Ziglio wrote: > Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> > --- > 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) _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel