Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Igor Pechtchanski
Pierre, Corinna's earlier post indicated that using this pointer collided with Cygwin's fork/exec mechanism... Igor On Tue, 10 Dec 2002, Pierre A. Humblet wrote: > On Wed, Dec 11, 2002 at 06:12:21AM +1100, Noel Gordon wrote: > > > If it is true that cygwin uses gethostbyname() from wsock

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Pierre A. Humblet
On Wed, Dec 11, 2002 at 06:12:21AM +1100, Noel Gordon wrote: > If it is true that cygwin uses gethostbyname() from wsock32.dll, and > returns the wsock32.dll hostent* result to the application, then it > is perhaps unwise to free() it. Following your tip, we find from ... > In net.cc cygwin take

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Noel Gordon
> On Tue, 10 Dec 2002, Noel Gordon wrote: > > > 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() > > { > >

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Igor Pechtchanski
On Tue, 10 Dec 2002, Corinna Vinschen wrote: > On Tue, Dec 10, 2002 at 10:36:04AM -0500, Igor Pechtchanski wrote: > > On Tue, 10 Dec 2002, Noel Gordon wrote: > > > > > Anyone else confirm that the following program compiled under > > > gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory? > > Confirmed

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Corinna Vinschen
On Tue, Dec 10, 2002 at 10:36:04AM -0500, Igor Pechtchanski wrote: > On Tue, 10 Dec 2002, Noel Gordon wrote: > > > Anyone else confirm that the following program compiled under > > gcc 3.2, cygwin 1.3.17-1, on Win2k leaks memory? Confirmed. I found the missing free(). > >From http://www.opengro

Re: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Igor Pechtchanski
On Tue, 10 Dec 2002, Noel Gordon wrote: > 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; > >

FW: cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Steve Fairbairn
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 p

cygwin 1.3.17-1 gethostbyname() leak

2002-12-10 Thread Noel Gordon
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"