Fix the memory leaks problem.

Add efree(ip_str) to free the ip_str returned by monip_gethostbyname funciton.
Fix the memory leaks problem.

Add multi efree invokes for fully avoid the memory leak problem occurs
by monip_getbyhostname.
Merge pull request #2 from codeant/master

Fix the memory leaks problem.