mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-25 06:03:42 +03:00
Don't free SPICE ticket twice
Commit 2201a5a was supposed to free a SPICE ticket leak, but it's actually introducing a double-free as the SPICE ticket is unconditionally freed at the end of virt_viewer_session_spice_main_channel_event
This commit is contained in:
parent
d5bbe725d3
commit
a4e588e3ea
@ -326,7 +326,6 @@ virt_viewer_session_spice_main_channel_event(SpiceChannel *channel G_GNUC_UNUSED
|
||||
gboolean openfd;
|
||||
|
||||
g_object_set(self->priv->session, "password", password, NULL);
|
||||
g_free(password);
|
||||
g_object_get(self->priv->session, "client-sockets", &openfd, NULL);
|
||||
|
||||
if (openfd)
|
||||
|
Loading…
x
Reference in New Issue
Block a user