If the malloc(3) had failed to allocate the memory, it returned nonzero
value, but the 'file' handle was kept open. This closes the handle
before return from the `init_xdg_dirs()` if the malloc(3) has failed.
--
https://gitlab.winehq.org/wine/wine/-/merge_requests/5827