From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Thorsten Knabe <tek(at)thorsten-knabe(dot)de> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: PostgreSQL 7.0.3: Memory leak in ESQL library |
Date: | 2001-01-02 22:02:21 |
Message-ID: | 200101022202.RAA06871@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Yes, I see the problem you reported. Here is the patch I have applied.
Thanks.
> Hello,
>
> I've found a memory leak in libecpg of PostgreSQL 7.0.3.
> The leak is caused by the memory allocation in
> src/interfaces/ecpg/lib/execute.c in line 669 which is never freed.
> Adding a "free(array_query);" after PQexec in line 671 seems to fix the
> leak.
>
> Regards
> Thorsten
>
> --
> E-Mail: tek(at)thorsten-knabe(dot)de
> ___ WWW: http://tek.thorsten-knabe.de
> | | / ICQ: 5472045
> |horsten |/\nabe Linux AD1816 sound driver developer
>
>
--
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
Attachment | Content-Type | Size |
---|---|---|
unknown_filename | text/plain | 2.2 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Denis V. Osadchy | 2001-01-03 06:56:25 | Output of date_part('quarter', date) |
Previous Message | Peter Eisentraut | 2001-01-02 20:34:09 | Re: AIX 4.3.1, 7.0.3 build annoyances: C++ comments, make all, macro problem |