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

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: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-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                        |
  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

pgsql-bugs by date

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

pgsql-patches by date

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

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