[Spice-devel] [PATCH phodav 07/13] spice: unref GSocketAddress

Jakub Janků jjanku at redhat.com
Thu May 23 08:37:19 UTC 2019


No need to keep it around after calling
g_socket_listener_add_address().

Signed-off-by: Jakub Janků <jjanku at redhat.com>
---
 spice/spice-webdavd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/spice/spice-webdavd.c b/spice/spice-webdavd.c
index d9b1fae..681e909 100644
--- a/spice/spice-webdavd.c
+++ b/spice/spice-webdavd.c
@@ -1137,6 +1137,7 @@ main (int argc, char *argv[])
                                  NULL,
                                  NULL,
                                  &error);
+  g_object_unref (saddr);
   if (error)
     {
       g_printerr ("%s\n", error->message);
-- 
2.21.0



More information about the Spice-devel mailing list