[Spice-devel] [PATCH 10/23] simplify smartcard_channel_release_pipe_item
Frediano Ziglio
fziglio at redhat.com
Mon May 16 13:31:20 UTC 2016
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)
--
2.7.4
More information about the Spice-devel
mailing list