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

Jonathon Jongsma jjongsma at redhat.com
Mon Sep 18 21:59:26 UTC 2017


Acked-by: Jonathon Jongsma <jjongsma at redhat.com>


On Mon, 2017-09-11 at 16:15 +0100, Frediano Ziglio wrote:
> 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);


More information about the Spice-devel mailing list