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; > >

RE: cygwin 1.3.17-1

2002-11-27 Thread Rolf Campbell
I've checked, and the file is the size expected in setup.ini (1091203 bytes). Also, the md5sum in setup.ini matches the md5sum of the file on mirrors.rcn.net. But, setup 2.249.2.5 still complains about the file being corrupt and won't install it. Oh, wait, it just worked. I don't know why. I didn