bug-glibc
[Top][All Lists]
Advanced

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

Re: gethosybyname & gethostbyname_r


From: Ulrich Drepper
Subject: Re: gethosybyname & gethostbyname_r
Date: 19 Jan 2001 07:56:04 -0800
User-agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef)

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]