]> git.proxmox.com Git - qemu.git/blobdiff - qga/commands.c
versatile_pci: Implement the correct PCI IRQ mapping
[qemu.git] / qga / commands.c
index 7ffb35e4af8a15a15f9a18f5d3fed3b21650205a..528b082fa889f5f6b8ac68494e1f3a5c6a87c532 100644 (file)
@@ -61,7 +61,7 @@ struct GuestAgentInfo *qmp_guest_info(Error **err)
 
     while (*cmd_list) {
         cmd_info = g_malloc0(sizeof(GuestAgentCommandInfo));
-        cmd_info->name = strdup(*cmd_list);
+        cmd_info->name = g_strdup(*cmd_list);
         cmd_info->enabled = qmp_command_is_enabled(cmd_info->name);
 
         cmd_info_list = g_malloc0(sizeof(GuestAgentCommandInfoList));