> On Oct 6, 2017, at 4:50 PM, Philippe Mathieu-Daudé <f4...@amsat.org> wrote:
> 
> Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org>
Reviewed-by: Ben Warren <b...@skyportsystems.com>
> ---
> hw/acpi/vmgenid.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/hw/acpi/vmgenid.c b/hw/acpi/vmgenid.c
> index 2876d8a639..ced507d218 100644
> --- a/hw/acpi/vmgenid.c
> +++ b/hw/acpi/vmgenid.c
> @@ -269,7 +269,7 @@ GuidInfo *qmp_query_vm_generation_id(Error **errp)
>     }
>     vms = VMGENID(obj);
> 
> -    info = g_malloc0(sizeof(*info));
> +    info = g_new0(GuidInfo, 1);
>     info->guid = qemu_uuid_unparse_strdup(&vms->guid);
>     return info;
> }
> -- 
> 2.14.2
> 

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to