mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 12:24:55 +00:00
char-device: Avoid use-after-free
Reset pointer after freeing the structure pointing to it. Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
parent
61d41688d4
commit
fe3d5d542d
@ -211,6 +211,7 @@ static void spice_char_device_client_free(SpiceCharDeviceState *dev,
|
||||
|
||||
if (dev_client->wait_for_tokens_timer) {
|
||||
reds_core_timer_remove(dev->priv->reds, dev_client->wait_for_tokens_timer);
|
||||
dev_client->wait_for_tokens_timer = NULL;
|
||||
}
|
||||
|
||||
spice_char_device_client_send_queue_free(dev, dev_client);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user