Re: [libvirt PATCH 2/2] esx: switch esxUtil_ResolveHostname to return a new string

2020-10-05 Thread Laine Stump
On 10/5/20 7:41 AM, Pino Toscano wrote: Change the interface of esxUtil_ResolveHostname() to return a newly allocated string with the result address, instead of forcing the callers to provide a buffer and its size. This way we can simply (auto)free the string, and make the function stacks

[libvirt PATCH 2/2] esx: switch esxUtil_ResolveHostname to return a new string

2020-10-05 Thread Pino Toscano
Change the interface of esxUtil_ResolveHostname() to return a newly allocated string with the result address, instead of forcing the callers to provide a buffer and its size. This way we can simply (auto)free the string, and make the function stacks smaller. Signed-off-by: Pino Toscano ---