Fix the wrong description in qemu manual
[qemu.git] / qapi / qmp-registry.c
index 70cdbca470ef584fda11e8c76a243a2d52ac4030..28bbbe849e2c872165f531a0353d73684143cca5 100644 (file)
@@ -92,7 +92,7 @@ char **qmp_get_command_list(void)
     list_head = list = g_malloc0(count * sizeof(char *));
 
     QTAILQ_FOREACH(cmd, &qmp_commands, node) {
-        *list = strdup(cmd->name);
+        *list = g_strdup(cmd->name);
         list++;
     }
 
This page took 0.021274 seconds and 4 git commands to generate.