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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ignacio Casal Quinteiro <icq@xxxxxxxxx>

---
 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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]