If the canonical hostname was "localhost", the address info was not
freed.
Don't bother checking whether ai_canonname is NULL because if there is
no canonical name, getaddrinfo must set ai_canonname to the input name.
Fixes: ca5a6d07dc92ba631b178ec175e6b3fd5295e3d6
--
v2: wineboot: Fix a memory leak in create_computer_name_keys.
https://gitlab.winehq.org/wine/wine/-/merge_requests/8918
If the canonical hostname was "localhost", the address info was not
freed.
Also, since we're touching the same line that defines the address info
hints, make the hints `static const` so that the compiler knows it's
safe to put them in read-only memory if it wants.
Fixes: ca5a6d07dc92ba631b178ec175e6b3fd5295e3d6
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/8918