[Spice-devel] [PATCH spice-gtk 4/5] usb-device-manager: Fix redirect_on_connect_rules mem-leak

Christophe Fergeau cfergeau at redhat.com
Tue Apr 23 11:14:26 PDT 2013


On Tue, Apr 23, 2013 at 02:19:51PM +0200, Hans de Goede wrote:
> Signed-off-by: Hans de Goede <hdegoede at redhat.com>
> ---
>  gtk/usb-device-manager.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/gtk/usb-device-manager.c b/gtk/usb-device-manager.c
> index 75406a4..7575417 100644
> --- a/gtk/usb-device-manager.c
> +++ b/gtk/usb-device-manager.c
> @@ -314,6 +314,7 @@ static void spice_usb_device_manager_finalize(GObject *gobject)
>      if (priv->event_thread)
>          g_thread_join(priv->event_thread);
>      free(priv->auto_conn_filter_rules);
> +    free(priv->redirect_on_connect_rules);

This should be a g_free

>  #ifdef G_OS_WIN32
>      if (priv->installer)
>          g_object_unref(priv->installer);
> -- 
> 1.8.2
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20130423/e4b80ba2/attachment.pgp>


More information about the Spice-devel mailing list