[libvirt] [PATCH] esx: Fix memory leaks in error paths related to transferred ownership
Michal Privoznik
mprivozn at redhat.com
Mon May 7 10:15:26 UTC 2012
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
More information about the libvir-list
mailing list