PostgreSQL 7.0.3: Memory leak in ESQL library

From: Thorsten Knabe <tek(at)thorsten-knabe(dot)de>
To: pgsql-bugs(at)postgresql(dot)org
Subject: PostgreSQL 7.0.3: Memory leak in ESQL library
Date: 2001-01-02 13:39:53
Message-ID: Pine.LNX.4.21.0101021427130.14858-100000@tek01.teknet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Travis W. Pouarz 2001-01-02 14:57:35 Re: AIX 4.3.1, 7.0.3 build annoyances: C++ comments, make all, macro problem
Previous Message Larry Rosenman 2001-01-02 12:38:26 Re: Conversion errors for datetime fields