summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-10-01 18:22:04 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-10-01 18:41:26 +0200
commita4e588e3eacf4e5590ff98171a495f8fa0e37375 (patch)
tree4e601e222775413b868430cfd80b89bc270a37c9 /src
parentd5bbe725d35e2a709dc04059260f3176772e3b56 (diff)
downloadvirt-viewer-a4e588e3eacf4e5590ff98171a495f8fa0e37375.tar.gz
virt-viewer-a4e588e3eacf4e5590ff98171a495f8fa0e37375.tar.xz
virt-viewer-a4e588e3eacf4e5590ff98171a495f8fa0e37375.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/virt-viewer-session-spice.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
index 5fcd7fb..2577f2b 100644
--- a/src/virt-viewer-session-spice.c
+++ b/src/virt-viewer-session-spice.c
@@ -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)