Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- server/spicevmc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/server/spicevmc.c b/server/spicevmc.c index bdaa3c3..5724023 100644 --- a/server/spicevmc.c +++ b/server/spicevmc.c @@ -441,11 +441,7 @@ static void spicevmc_red_channel_release_pipe_item(RedChannelClient *rcc, RedPipeItem *item, int item_pushed) { - if (item->type == RED_PIPE_ITEM_TYPE_SPICEVMC_DATA) { - red_pipe_item_unref(item); - } else { - free(item); - } + red_pipe_item_unref(item); } static void spicevmc_connect(RedChannel *channel, RedClient *client, -- 2.7.4 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel