[libvirt] [PATCH] esx: Fix memory leaks in error paths related to transferred ownership
Matthias Bolte
matthias.bolte at googlemail.com
Sun May 13 14:38:50 UTC 2012
2012/5/7 Michal Privoznik <mprivozn at redhat.com>:
> On 06.05.2012 19:39, Matthias Bolte wrote:
>> Appending an item to a list transfers ownership of that item to the
>> list owner. But an error can occur in between item allocation and
>> appending it to the list. In this case the item has to be freed
>> explicitly. This was not done in some special cases resulting in
>> possible memory leaks.
>>
>> Reported by Coverity.
>> ---
>>
>> This is actually a v2 for this patch
>>
>> https://www.redhat.com/archives/libvir-list/2012-May/msg00115.html
>>
>> src/esx/esx_driver.c | 16 ++++++++++--
>> src/esx/esx_vi.c | 63 ++++++++++++++++++++++++++++++++++++++++++--------
>> 2 files changed, 66 insertions(+), 13 deletions(-)
>>
>
>
> ACK
>
> Michal
Thanks, pushed, finally :)
--
Matthias Bolte
http://photron.blogspot.com
More information about the libvir-list
mailing list