Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <01a001c2a029$0d9950d0$3492fea9@NOELG> Reply-To: "Noel Gordon" From: "Noel Gordon" To: Subject: cygwin 1.3.17-1 gethostbyname() leak Date: Tue, 10 Dec 2002 19:48:44 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.5600 Anyone else confirm that the following program compiled under gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory? /*-----------------------------------------------------------*/ #include #include 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/