Re: BUG #1558: memory leak in libpq connectDBStart() - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #1558: memory leak in libpq connectDBStart()
Date
Msg-id 3622.1111911157@sss.pgh.pa.us
Whole thread Raw
In response to BUG #1558: memory leak in libpq connectDBStart()  ("Cade Cairns" <cadec@otii.com>)
Responses Re: BUG #1558: memory leak in libpq connectDBStart()  (Cade Cairns <cadec@otii.com>)
List pgsql-bugs
"Cade Cairns" <cadec@otii.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

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: BUG #1554: wrong character on the sjis_to_utf8.map file
Next
From: "John Hansen"
Date:
Subject: Re: BUG #1557: UPPER() and LOWER() do not return the right characters