leak in gethostbyname



Hi,
I'm using memprof on a program that uses gethostbyname().
The leak is not shown if I do a free on the (struct hostent*) which is
returned by gethostbyname(). This is obviously not correct, since the
return from gethostbyname() is a pointer to a static data structure(at
least the man pages say that). Looking through netdb.h proved to be
futile. So is this leak have something to do with memprof or is there a
really a leak in gethostbyname()?

Thanks.

Vijay






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