* Juan Quintela (quint...@redhat.com) wrote: > Signed-off-by: Juan Quintela <quint...@redhat.com> > Reported-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilb...@redhat.com> (same as Marc-André's) > --- > tests/migration-test.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/tests/migration-test.c b/tests/migration-test.c > index be598d3257..799e24ebc6 100644 > --- a/tests/migration-test.c > +++ b/tests/migration-test.c > @@ -358,13 +358,14 @@ static void migrate_check_parameter(QTestState *who, > const char *parameter, > const char *value) > { > QDict *rsp, *rsp_return; > - const char *result; > + char *result; > > rsp = wait_command(who, "{ 'execute': 'query-migrate-parameters' }"); > rsp_return = qdict_get_qdict(rsp, "return"); > result = g_strdup_printf("%" PRId64, > qdict_get_try_int(rsp_return, parameter, -1)); > g_assert_cmpstr(result, ==, value); > + g_free(result); > QDECREF(rsp); > } > > -- > 2.14.3 > -- Dr. David Alan Gilbert / dgilb...@redhat.com / Manchester, UK