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: Andreas Färber
Subject: Re: [Qemu-devel] [PATCH 0/2] qom: strdup() target_name on object_property_add_alias()
Date: Fri, 10 Apr 2015 00:48:30 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

Am 09.04.2015 um 22:22 schrieb Paolo Bonzini:
> 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>

Looks good to me in general, I'm just surprised that there are not more
cleanups resulting out of this? At least my pc87312 series will need
changes then. Will take a deeper look another day.

Regards,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Jennifer Guild, Dilip Upmanyu,
Graham Norton; HRB 21284 (AG Nürnberg)



reply via email to

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