This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
cygwin 1.3.17-1 gethostbyname() leak
- From: "Noel Gordon" <noelg at blueskyinternet dot com dot au>
- To: <cygwin at cygwin dot com>
- Date: Tue, 10 Dec 2002 19:48:44 +1100
- Subject: cygwin 1.3.17-1 gethostbyname() leak
- Reply-to: "Noel Gordon" <noelg at blueskyinternet dot com dot au>
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/