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