]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Remove need for extra VIR_FREE's in virGetFCHostNameByWWN
authorJohn Ferlan <jferlan@redhat.com>
Fri, 18 Nov 2016 13:55:35 +0000 (08:55 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 4 Jan 2017 22:09:59 +0000 (17:09 -0500)
commit1d0fde7ee137d2a80c937db1037cbc5fd2e2cde5
tree3fc7aca84851d67ebd09a8c48cc77f47b1c18578
parent9fdc8c4269d710328c4d57292d6404ff13b6f632
util: Remove need for extra VIR_FREE's in virGetFCHostNameByWWN

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 <jferlan@redhat.com>
src/util/virutil.c