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: From: Steve Fairbairn To: "'cygwin AT cygwin DOT com'" Subject: FW: cygwin 1.3.17-1 gethostbyname() leak Date: Tue, 10 Dec 2002 09:51:02 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Note-from-DJ: This may be spam Sorry, it decided not to reply to the list for some reason. -----Original Message----- From: Steve Fairbairn Sent: 10 December 2002 08:57 To: 'Noel Gordon' Subject: RE: cygwin 1.3.17-1 gethostbyname() leak I can confirm it loses about 8k every sample of the Win2k Pro task manager performance monitor - PIII 800MHz. It doesn't seem to be the scroll buffer or anything like that, and it is all free'd by ?Windows? when the program is terminated. Also removing the call to gethostbyname() and leaving a similar printf doesn't give the same issue so it does appear to be gethostbyname() that is doing it. Cheers, Steve Fairbairn -----Original Message----- From: Noel Gordon [mailto:noelg AT blueskyinternet DOT com DOT au] Sent: 10 December 2002 08:49 To: cygwin AT cygwin DOT com Subject: 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 #include int main() { struct hostent *host; while ( 1 ) { if ( ( host = gethostbyname( "localhost" ) ) != NULL ) printf( "gethostbyname(): %s\n", host->h_name ); } } ******************************************************* This email has originated from Perwill plc (Registration No. 1906964) Office registered at: 13A Market Square, Alton, Hampshire, GU34 1UR, UK Tel: +44 (0)1420 545000 Fax: +44 (0)1420 545001 www.perwill.com ******************************************************* Privileged, confidential and/or copyright information may be contained in this email, and is only for the use of the intended addressee. To copy, forward, disclose or otherwise use it in any way if you are not the intended recipient or responsible for delivering to him/her is prohibited. If you receive this email by mistake, please advise the sender immediately, by using the reply facility in your email software. We may monitor the content of emails sent and received via our network for the purposes of ensuring compliance with policies and procedures. This message is subject to and does not create or vary any contractual relationships between Perwill plc and the recipient. ******************************************************* Any opinions expressed in the email are those of the sender and not necessarily of Perwill plc. ******************************************************* This email has been scanned for known viruses using McAfee WebShield 4.5 MR1a ******************************************************* -- 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/