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

2012-05-13 Thread Matthias Bolte
2012/5/7 Michal Privoznik mpriv...@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

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

2012-05-07 Thread Michal Privoznik
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

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

2012-05-06 Thread Matthias Bolte
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