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 18:38:26 +0100 (CET)

Hello,

Sorry I do not fully understand what you mean with your question.

That piece of code is just a small snippet  where I believe the leak to
orginate from. If I link in any one of the free memory leak tools
(dmalloc, debauch, mpatrol) then when the code exits I get a log file
stating that 6324 bytes were not freed.

Its not that much of a leak, I know. I was just curious as to why it was
happening and things.

Why are people in this list so agressive. I had a fight with Andreas this
morning because HE didnt read my mail properly and then he writes back
calling stupid. Now you've come this afternoon with this mail. What the
hell is wrong with people?

Regards,
Phillip


On 19 Jan 2001, Ulrich Drepper wrote:

> Date: 19 Jan 2001 07:56:04 -0800
> From: Ulrich Drepper <address@hidden>
> Reply-To: Ulrich Drepper <address@hidden>
> To: Phillip Partridge <address@hidden>
> Cc: Andreas Jaeger <address@hidden>, address@hidden
> Subject: Re: gethosybyname & gethostbyname_r
>
> Phillip Partridge <address@hidden> writes:
>
> > 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?
>
> How do you want to detect a memory leak with that piece of code?  Do
> you even know what you are talking about?
>
> --
> ---------------.                          ,-.   1325 Chesapeake Terrace
> Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
> Red Hat          `--' drepper at redhat.com   `------------------------
>




reply via email to

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