[virt-tools-list] [virt-viewer 1/3] Don't leak SPICE ticket

Daniel P. Berrange berrange at redhat.com
Wed Jun 13 10:00:55 UTC 2012


On Wed, Jun 13, 2012 at 11:57:49AM +0200, Christophe Fergeau wrote:
> ---
>  src/virt-viewer-session-spice.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/virt-viewer-session-spice.c b/src/virt-viewer-session-spice.c
> index 4a8c9cf..7b47735 100644
> --- a/src/virt-viewer-session-spice.c
> +++ b/src/virt-viewer-session-spice.c
> @@ -325,6 +325,7 @@ 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)

ACK

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list