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/