[Spice-devel] [PATCH spice-server 08/11] reds: Use GLib memory functions for RedServerConfig::mig_spice

Frediano Ziglio fziglio at redhat.com
Mon Sep 11 15:15:50 UTC 2017


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

diff --git a/server/reds.c b/server/reds.c
index acb25dd9f..9b573987a 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -2964,7 +2964,7 @@ static void reds_mig_release(RedServerConfig *config)
     if (config->mig_spice) {
         free(config->mig_spice->cert_subject);
         g_free(config->mig_spice->host);
-        free(config->mig_spice);
+        g_free(config->mig_spice);
         config->mig_spice = NULL;
     }
 }
@@ -4113,7 +4113,7 @@ static int reds_set_migration_dest_info(RedsState *reds,
         return FALSE;
     }
 
-    spice_migration = spice_new0(RedsMigSpice, 1);
+    spice_migration = g_new0(RedsMigSpice, 1);
     spice_migration->port = port;
     spice_migration->sport = secure_port;
     spice_migration->host = g_strdup(dest);
-- 
2.13.5



More information about the Spice-devel mailing list