Re: [libvirt] [PATCH 09/11] util: Remove need for extra VIR_FREE's in virGetFCHostNameByWWN

2017-01-02 Thread Ján Tomko
On Fri, Nov 18, 2016 at 09:26:35AM -0500, John Ferlan wrote: Rather than extraneous VIR_FREE's depending on where we are in the code, move them to the top of the loop and in the cleanup path. Signed-off-by: John Ferlan --- src/util/virutil.c | 27 +-- 1 file changed, 9 in

[libvirt] [PATCH 09/11] util: Remove need for extra VIR_FREE's in virGetFCHostNameByWWN

2016-11-18 Thread John Ferlan
Rather than extraneous VIR_FREE's depending on where we are in the code, move them to the top of the loop and in the cleanup path. Signed-off-by: John Ferlan --- src/util/virutil.c | 27 +-- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/src/util/virutil.c