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

Re: [libvirt] [PATCH] esx: Fix memory leaks in error paths related to transferred ownership



2012/5/7 Michal Privoznik <mprivozn 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


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