@@ -46,16 +46,14 @@ static bool is_blacklisted(const char *arch, const
char *mac
h)
static void test_properties(const char *path)
{
- char *cmd, *child_path;
+ char *child_path;
QDict *response, *tuple;
QList *list;
QListEntry *entry;
g_test_message("Obtaining properties of %s", path);
- cmd = g_strdup_printf("{ 'execute': 'qom-list',"
- " 'arguments': { 'path': '%s' } }", path);
- response = qmp(cmd);
- g_free(cmd);
+ response = qmp("{ 'execute': 'qom-list',"
+ " 'arguments': { 'path': '%s' } }", path);
g_assert(response);