emergence problem! I need your help! Platfrom Rredhat Linux 7.2, I called the system function gethostbyname, then I used memory leak tools(mtrace and valgrind) to trace memory leak, I found the gethostbyname having a memory leak. I can use command "man freehostent", but I can not use, the gcc compiler told me the function "freehostent" not found. What can I do? My example source as follow : #include <stdlib.h> int main(int argc, char
*argv[])
best regards! Firmstone Zhang |