Audit getaddrinfo() uses for proper freeing, redmine #6539.

(cherry picked from commit 09fb03bf23479f6499588a13185769777a7d4c33)

Conflicts:
	libcfnet/communication.c
Merge pull request #1938 from jimis/3.6.x

Audit getaddrinfo() uses for proper freeing, redmine #6539.