This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cygwin 1.3.17-1 gethostbyname() leak


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]