[Spice-devel] [PATCH spice-server 06/20] Do not leak mig_timer

Frediano Ziglio fziglio at redhat.com
Thu Nov 24 17:38:53 UTC 2016


Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
---
 server/reds.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/server/reds.c b/server/reds.c
index 1a812e4..bc0cc01 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3594,6 +3594,10 @@ SPICE_GNUC_VISIBLE void spice_server_destroy(SpiceServer *reds)
     }
     reds_cleanup(reds);
 
+    if (reds->mig_timer) {
+        reds_core_timer_remove(reds, reds->mig_timer);
+    }
+
     /* remove the server from the list of servers so that we don't attempt to
      * free it again at exit */
     pthread_mutex_lock(&global_reds_lock);
-- 
2.9.3



More information about the Spice-devel mailing list