diff options
author | Alon Levy <alevy@redhat.com> | 2011-05-24 13:19:09 +0300 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-05-24 16:11:26 +0300 |
commit | 529dc40dc3e86d9dffa6ea537b425bba2bb3937a (patch) | |
tree | 0b90907ab3e4354b9cded8b93f43e5da51eccf3f /server | |
parent | 31358b640be13c3b0955fc9acc1ad9526cc280ec (diff) | |
download | spice-529dc40dc3e86d9dffa6ea537b425bba2bb3937a.tar.gz spice-529dc40dc3e86d9dffa6ea537b425bba2bb3937a.tar.xz spice-529dc40dc3e86d9dffa6ea537b425bba2bb3937a.zip |
server/smartcard: fix use after free
Diffstat (limited to 'server')
-rw-r--r-- | server/smartcard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/smartcard.c b/server/smartcard.c index 1698a38d..9d72a7e3 100644 --- a/server/smartcard.c +++ b/server/smartcard.c @@ -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) |