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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Acked-by: Jonathon Jongsma <jjongsma@xxxxxxxxxx>


On Mon, 2017-09-11 at 16:15 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  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);
_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]