Skip site navigation (1) Skip section navigation (2)

BUG #1558: memory leak in libpq connectDBStart()

From: "Cade Cairns" <cadec(at)otii(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1558: memory leak in libpq connectDBStart()
Date: 2005-03-22 19:13:41
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      1558
Logged by:          Cade Cairns
Email address:      cadec(at)otii(dot)com
PostgreSQL version: 8.0.1
Operating system:   MacOSX 10.3.8
Description:        memory leak in libpq connectDBStart()

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.


pgsql-bugs by date

Next:From: Ron MayerDate: 2005-03-23 01:21:32
Subject: contrib module intagg crashing the backend
Previous:From: Staffan SandbergDate: 2005-03-22 09:27:37
Subject: BUG #1557: UPPER() and LOWER() do not return the right characters

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group