Re: [libvirt PATCH 1/2] esx: call freeaddrinfo earlier in esxUtil_ResolveHostname

2020-10-05 Thread Laine Stump
On 10/5/20 7:41 AM, Pino Toscano wrote: 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 Reviewed-by: Laine Stump --- src/esx/esx_util.c | 4 +--- 1 file

[libvirt PATCH 1/2] esx: call freeaddrinfo earlier in esxUtil_ResolveHostname

2020-10-05 Thread Pino Toscano
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 --- src/esx/esx_util.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/esx/esx_util.c