[Spice-devel] [spice-server v2 3/3] reds: Free client_monitors_config in spice_server_destroy()

Christophe Fergeau cfergeau at redhat.com
Thu Jun 15 10:05:07 UTC 2017


This was not done until now, and it's only going to be needed if we receive
a partial ClientMonitorsConfig message.

Signed-off-by: Christophe Fergeau <cfergeau at redhat.com>
---
 server/reds.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/reds.c b/server/reds.c
index 620867424..19e132cb4 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3706,7 +3706,7 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds)
        reds_core_watch_remove(reds, reds->secure_listen_watch);
        close(reds->secure_listen_socket);
     }
-
+    spice_buffer_free(&reds->client_monitors_config);
     red_record_unref(reds->record);
     reds_cleanup(reds);
 #ifdef RED_STATISTICS
-- 
2.13.0



More information about the Spice-devel mailing list