cygwin 1.3.17-1 gethostbyname() leak
Noel Gordon
noelg@blueskyinternet.com.au
Tue Dec 10 01:06:00 GMT 2002
Anyone else confirm that the following program compiled under
gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory?
/*-----------------------------------------------------------*/
#include <netdb.h>
#include <stdio.h>
int main()
{
struct hostent *host;
while ( 1 )
{
if ( ( host = gethostbyname( "localhost" ) ) != NULL )
printf( "gethostbyname(): %s\n", host->h_name );
}
}
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list