Re: BUG #6366: ECPG connection Memory Leak when using Host Variables

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: li_gang02(at)sina(dot)com
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6366: ECPG connection Memory Leak when using Host Variables
Date: 2012-01-05 13:14:05
Message-ID: 20120105131405.GA11590@feivel.credativ.lan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 = n * sizeof(struct var_list), where n
> is maxium
> ** of Host Variables used in a DB Connection).

The actual number is quite a bit lower because only variables used in DECLARE
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.

Michael
--
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ça Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL

In response to

Browse pgsql-bugs by date

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