qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 0/2] qom: strdup() target_name on object_propert


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH 0/2] qom: strdup() target_name on object_property_add_alias()
Date: Thu, 09 Apr 2015 22:22:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0


On 09/04/2015 21:57, Eduardo Habkost wrote:
> This helps us avoid memory leaks when using object_property_add_alias(), as it
> is not practical for callers to save target_name to free it later.
> 
> Eduardo Habkost (2):
>   qom: strdup() target property name on object_property_add_alias()
>   qdev: Free property names after registering gpio aliases
> 
>  hw/core/qdev.c | 2 ++
>  qom/object.c   | 5 +++--
>  2 files changed, 5 insertions(+), 2 deletions(-)
> 

Good idea!

Reviewed-by: Paolo Bonzini <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]