freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Brian Bruns <camber AT ais.org>
- To: TDS Development Group <freetds AT franklin.metalab.unc.edu>
- Subject: Re: tds_process_login_tokens()
- Date: Wed, 7 Aug 2002 06:56:42 -0400 (EDT)
Freddy,
I get 2038 bytes allocated and unfreed using gethostbyname_r() which is
not as bad but still some leakage.
I saw some noise on the glibc list about using endhostent() after calls to
gethostbyname(), but doing so made the leakage worse. However, if this
were a required call, one would assume that every example call to
gethostbyname() program would include it, and none do.
Brian
On Wed, 7 Aug 2002, ZIGLIO Frediano wrote:
> Results: it also allocate 8K for thread (and don't free it), removing
> gethostbyname allocate (and not free) only a chunk of 8K. But copying many
> time gethostbyname line do not waste other memory.
> Replicating also gethostbyname in main do waste other memory. So seem that
> glibc allocate some memory at the first call of gethostbyname.
>
> freddy77
>
-
tds_process_login_tokens(),
Coleman, Dave, 08/06/2002
- <Possible follow-up(s)>
- RE: tds_process_login_tokens(), Lowden, James K, 08/06/2002
- Re: tds_process_login_tokens(), Brian Bruns, 08/06/2002
- Re: tds_process_login_tokens(), ZIGLIO Frediano, 08/07/2002
- Re: tds_process_login_tokens(), Brian Bruns, 08/07/2002
- Re: tds_process_login_tokens(), Coleman, Dave, 08/07/2002
- Re: tds_process_login_tokens(), Brian Bruns, 08/07/2002
- Re: tds_process_login_tokens(), ZIGLIO Frediano, 08/07/2002
- Re: tds_process_login_tokens(), Coleman, Dave, 08/07/2002
- Re: tds_process_login_tokens(), Andre Costa, 08/07/2002
Archive powered by MHonArc 2.6.24.