Re: Memory Leak when freeing statement

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Kelly Burkhart <kelly(at)tradebotsystems(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: Memory Leak when freeing statement
Date: 2005-03-30 18:06:38
Message-ID: 200503302006.38606.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Kelly Burkhart wrote:
> I have found a memory leak when freeing a statement handle which has
> had parameters bound in psqlodbc-08.00.0101. I was able to eliminate
> the leak by adding:
>
> SC_free_params(self, STMT_FREE_PARAMS_ALL);
>
> to line 330 of statement.c in the SC_Destructor method. I'm not
> familiar enough with the code to know if this is a sensible fix.

Can you provide an example program that shows the memory leak?

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Peter Eisentraut 2005-03-30 18:08:16 Re: psqlODBC 'ERROR: invalid input syntax for integer: =?iso-8859-1?q?A=02?='
Previous Message Peter Eisentraut 2005-03-30 18:02:18 Re: 32-bit ints on 64-bit linux