Re: [PATCHES] Libpq++ memory leak

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Michael Richards <michael(at)fastmail(dot)ca>
Cc: pgsql-patches(at)postgresql(dot)org, pgsql-bugs(at)postgresql(dot)org
Subject: Re: [PATCHES] Libpq++ memory leak
Date: 2000-07-27 19:43:58
Message-ID: 200007271943.PAA29538@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-patches

Applied. Thanks.

> Here is a bug and patch to fix it. I have tested this bug and fix on
> FreeBSD/Intel and DecUX/Alpha machines. The bug appears in postgresql
> 6.5.3 and 7.0.2. Can someone please review it and apply it to the
> source tree?
>
> Sometimes when the postgres connection dies it is necessary to
> attempt to reconnect. Calling the pgconnection::Connect method in a
> derived class leaks memory because it does not clear the current
> connection (if there is one). These patches ensures that any open
> connections are closed before attempting to open a new one.
>
> -Michael

[ Attachment, skipping... ]

[ Attachment, skipping... ]

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2000-07-27 23:56:21 Re: Bug with 'iscachable' attribute (Was: Index selection bug)
Previous Message Bernie Huang 2000-07-27 17:30:26 inheritance in V.7.1?

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2000-07-27 19:49:07 Re: some pedantic ANSI C fixes
Previous Message Bruce Momjian 2000-07-27 19:01:39 Re: Patch to fix the NULL date cast bug in 7.0.2