[Spice-devel] [PATCH spice-gtk 4/5] spice-client-glib-usb-acl-helper: Fix memleak

Hans de Goede hdegoede at redhat.com
Fri Jan 27 07:58:57 PST 2012


Not really important given the short livedness of the process, but
still should be fixed.

Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 gtk/spice-client-glib-usb-acl-helper.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/gtk/spice-client-glib-usb-acl-helper.c b/gtk/spice-client-glib-usb-acl-helper.c
index 53f4e9a..24da23e 100644
--- a/gtk/spice-client-glib-usb-acl-helper.c
+++ b/gtk/spice-client-glib-usb-acl-helper.c
@@ -255,6 +255,7 @@ static void stdin_read_complete(GObject *src, GAsyncResult *res, gpointer data)
     default:
         FATAL_ERROR("Unexpected extra input in state %d: %s\n", state, s);
     }
+    g_free(s);
 }
 
 /* Fix for polkit 0.97 and later */
-- 
1.7.7.6



More information about the Spice-devel mailing list