mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
server/smartcard: fix use after free
This commit is contained in:
parent
31358b640b
commit
529dc40dc3
@ -322,10 +322,10 @@ static void smartcard_channel_send_item(RedChannel *channel, PipeItem *item)
|
||||
|
||||
static void smartcard_channel_release_pipe_item(RedChannel *channel, PipeItem *item, int item_pushed)
|
||||
{
|
||||
free(item);
|
||||
if (item->type == PIPE_ITEM_TYPE_MSG) {
|
||||
free(((MsgItem*)item)->vheader);
|
||||
}
|
||||
free(item);
|
||||
}
|
||||
|
||||
static void smartcard_channel_disconnect(RedChannel *channel)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user