what might the **res
be if getaddrinfo
return non-zero ?
Is it safe, to call freeaddrinfo
, with all possible values might be given by getaddrinfo
?(exp. null
)
Is it needed, to call freeaddrinfo
, if getaddrinfo
return non-zero ?
Or, is there a possibility, that getaddrinfo
might allocate memory for result, and did not free it, when there are errors ?
And, will there be differences, among different implementations of libc, and OS kernel ?