Re: BUG #6366: ECPG connection Memory Leak when using Host Variables - Mailing list pgsql-bugs

From Michael Meskes
Subject Re: BUG #6366: ECPG connection Memory Leak when using Host Variables
Date
Msg-id 20120105131405.GA11590@feivel.credativ.lan
Whole thread Raw
In response to BUG #6366: ECPG connection Memory Leak when using Host Variables  (li_gang02@sina.com)
List pgsql-bugs
> ** PostgreSQL bug on ECPG connection when using Host Variables

Thanks for bringing this up. I just commited a fix into our git.

> **          in memory leak (TotalSize =3D n * sizeof(struct var_list), wh=
ere n
> is maxium
> **          of Host Variables used in a DB Connection).

The actual number is quite a bit lower because only variables used in DECLA=
RE
statements directly get stored in that list.

> **  Bug Fixing:
> **      A new function should be added, details as folloging

I integrated this into the connection closing code.=20

Michael
--=20
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Michael at BorussiaFan dot De, Meskes at (Debian|Postgresql) dot Org
Jabber: michael.meskes at googlemail dot com
VfL Borussia! For=C3=A7a Bar=C3=A7a! Go SF 49ers! Use Debian GNU/Linux, Pos=
tgreSQL

pgsql-bugs by date:

Previous
From: Michael Beattie
Date:
Subject: Re: BUG #6380: dropdb gives error while loading shared libraries: liblber-2.3.so.0
Next
From: Ryan Kelly
Date:
Subject: Re: [PATCH] Prevent hanging on unreachable hosts on startup