Fix the memory leaks problem.

Add efree(ip_str) to free the ip_str returned by monip_gethostbyname funciton.