]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: call freeaddrinfo earlier in esxUtil_ResolveHostname
authorPino Toscano <ptoscano@redhat.com>
Mon, 5 Oct 2020 09:38:09 +0000 (11:38 +0200)
committerPino Toscano <ptoscano@redhat.com>
Mon, 5 Oct 2020 14:23:35 +0000 (16:23 +0200)
commit3aaf23ff69cea9abb7b7a43d9ff3eb687a916a2e
tree7ccee208fbf82f56ed65bb9349af95c3adbbe30f
parent0fa5c238651c761927b2dac48b2c6885b1d3fb2e
esx: call freeaddrinfo earlier in esxUtil_ResolveHostname

Call freeaddrinfo() as soon as @result is not needed anymore, i.e. right
after getnameinfo(); this avoids calling freeaddrinfo() in two branches.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
src/esx/esx_util.c