Re: BUG #1558: memory leak in libpq connectDBStart()

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Cade Cairns" <cadec(at)otii(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1558: memory leak in libpq connectDBStart()
Date: 2005-03-27 08:12:37
Message-ID: 3622.1111911157@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Cade Cairns" <cadec(at)otii(dot)com> writes:
> The leak occurs when libpq can not establish a connection to the database
> server, in my case when it is not running. I believe that when a caller
> calls PQreset() or PQresetStart(), the subsequent call to connectDBStart()
> clobbers the previous value of addrlist in the PGconn. Presumably,
> closePGconn() should be destroying this value.

Uh ... could we see a complete test case for this?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message John Hansen 2005-03-27 10:06:40 Re: BUG #1557: UPPER() and LOWER() do not return the right characters
Previous Message Tom Lane 2005-03-27 07:43:32 Re: BUG #1554: wrong character on the sjis_to_utf8.map file