bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gethosybyname & gethostbyname_r


From: Phillip Partridge
Subject: Re: gethosybyname & gethostbyname_r
Date: Fri, 19 Jan 2001 11:58:25 +0100 (CET)

I did not think there was any need to send test code / logs at this stage.
I was first asking if anyone had similar problems. My guess was that this
must be a bug in my code as a bug in this kind of routine would have been
found a long time ago. Then if I had got some response in here then I
would back it up with code / logs.

Anyway, there is still a small matter of a memory leak inside the
following code.

... relevent headers included

int main(int argc, char **argv)
{
        struct hostent *h;

        h = gethostent("host name in here");

        return(0);
}

executin the code will result in

alloc calls: malloc 82, calloc 10, realloc 0, free 5

So any ideas?

Regards,
Phillip


On 19 Jan 2001, Andreas Jaeger wrote:

> Date: 19 Jan 2001 11:44:03 +0100
> From: Andreas Jaeger <address@hidden>
> To: Phillip Partridge <address@hidden>
> Cc: address@hidden
> Subject: Re: gethosybyname & gethostbyname_r
>
> Phillip Partridge <address@hidden> writes:
>
> > YOU ARE STUPID.
>
> > I told you that I did find problems with my code. In my first mail I TOLD
> > you that I wrote two small test programs and that they both leaked.
> Sorry, I misread your email and understood that you could not
> reproduce it - and that was the basis for my answer.
>
>
> >
> > I must have missed what you wrote in the mail below before because I have
> > only just seen this.
> >
> > > Since I don't know of any such problems - and it seems you even can't
> > > find such problems yourself on your machine - in glibc 2.1.3 and glibc
> > > 2.2.1.
> > >
> >
> > Take a look below, that was my first mail and I STATE that I HAVE SEEN
> > these memory leaks.
> >
> > I wrote to the mailing list hoping for some help / advice and instead of
> > have just spoken to an idiot like you.
>
> No further comments.
>
> Btw. wise people send test programs and show how to reproduce a
> problem including some trace output instead of demanding others to do
> the work for them.  This is free software after all.
>
> Andreas
> --
>  Andreas Jaeger
>   SuSE Labs address@hidden
>    private address@hidden
>     http://www.suse.de/~aj
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]