[Spice-devel] [spice-gtk] namedpipelistener: do not leak the error message

Fabiano Fidêncio fabiano at fidencio.org
Tue Feb 23 08:08:47 UTC 2016


On Tue, Feb 23, 2016 at 9:06 AM, Fabiano Fidêncio <fidencio at redhat.com> wrote:
> From: Ignacio Casal Quinteiro <icq at gnome.org>
>
> ---
>  src/controller/namedpipelistener.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/controller/namedpipelistener.c b/src/controller/namedpipelistener.c
> index 820c606..b4b6057 100644
> --- a/src/controller/namedpipelistener.c
> +++ b/src/controller/namedpipelistener.c
> @@ -126,6 +126,7 @@ connect_ready (gpointer user_data)
>                                         G_IO_ERROR_INVALID_ARGUMENT,
>                                         "GetOverlappedResult(): %s %d",
>                                         emsg, errsv);
> +      g_free (emsg);
>      }
>
>    g_simple_async_result_complete (c->async_result);
> --
> 2.5.0
>
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

The patch is originally from nacho. Sent to the mailing list for the record.
Thanks for the contribution!

Acked-by: Fabiano Fidêncio <fidencio at redhat.com>

Best Regards,
-- 
Fabiano Fidêncio


More information about the Spice-devel mailing list