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
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
> 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()
> > {
> >
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
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
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;
>
>
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
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"
8 matches
Mail list logo