Re: [PATCHES] BUG #2741: Double-free on error in ECPGconnect

2006-11-08 Thread Michael Meskes
On Tue, Nov 07, 2006 at 02:31:57PM +, Peter Harris wrote:
> Attached is a patch to make ECPGconnect call ECPGclear_auto_mem,
> as ECPGdo already does.

Thanks. I applied the patch to CVS HEAD, 8.1 and 8.0.

Michael
-- 
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED]
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

---(end of broadcast)---
TIP 6: explain analyze is your friend


[PATCHES] BUG #2741: Double-free on error in ECPGconnect

2006-11-07 Thread Peter Harris
Hi
Attached is a patch to make ECPGconnect call ECPGclear_auto_mem,
as ECPGdo already does.


Peter Harris
Concept Systems Ltd

This email and any files transmitted with it are confidential and are intended 
solely for the use of the individual or entity to whom they are addressed.  If 
you are not the original recipient or the person responsible for delivering the 
email to the intended recipient, be advised that you have received this email 
in error, and that any use, dissemination, forwarding, printing, or copying of 
this email is strictly prohibited. If you received this email in error, please 
immediately notify the sender and delete the original.


--- connect.c   2006-11-07 14:12:33.0 +
+++ connect.new.c   2006-11-07 14:14:41.0 +
@@ -277,6 +277,8 @@
 
ECPGinit_sqlca(sqlca);
 
+   ECPGclear_auto_mem();
+
if (INFORMIX_MODE(compat))
{
char   *envname;

---(end of broadcast)---
TIP 2: Don't 'kill -9' the postmaster