Re: [libvirt] [PATCH] esx: Fix potential memory leak in esxVI_BuildFullTraversalSpecItem

2010-03-22 Thread Matthias Bolte
2010/3/22 Daniel P. Berrange : > On Mon, Mar 22, 2010 at 01:55:45AM +0100, Matthias Bolte wrote: >> If esxVI_String_DeepCopyValue or esxVI_SelectionSpec_AppendToList fail >> then selectionSpec would leak. Add a free call in the failure path to >> fix the leak. >> --- >>  src/esx/esx_vi.c |    4 ++-

Re: [libvirt] [PATCH] esx: Fix potential memory leak in esxVI_BuildFullTraversalSpecItem

2010-03-22 Thread Daniel P. Berrange
On Mon, Mar 22, 2010 at 01:55:45AM +0100, Matthias Bolte wrote: > If esxVI_String_DeepCopyValue or esxVI_SelectionSpec_AppendToList fail > then selectionSpec would leak. Add a free call in the failure path to > fix the leak. > --- > src/esx/esx_vi.c |4 ++-- > 1 files changed, 2 insertions(+),

[libvirt] [PATCH] esx: Fix potential memory leak in esxVI_BuildFullTraversalSpecItem

2010-03-21 Thread Matthias Bolte
If esxVI_String_DeepCopyValue or esxVI_SelectionSpec_AppendToList fail then selectionSpec would leak. Add a free call in the failure path to fix the leak. --- src/esx/esx_vi.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/esx/esx_vi.c b/src/esx/esx_vi.c index aa46