Re: Memory Leak when freeing statement - Mailing list pgsql-odbc

From Peter Eisentraut
Subject Re: Memory Leak when freeing statement
Date
Msg-id 200503302006.38606.peter_e@gmx.net
Whole thread Raw
In response to Memory Leak when freeing statement  (Kelly Burkhart <kelly@tradebotsystems.com>)
Responses Re: Memory Leak when freeing statement
List 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/

pgsql-odbc by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: 32-bit ints on 64-bit linux
Next
From: Peter Eisentraut
Date:
Subject: Re: psqlODBC 'ERROR: invalid input syntax for integer:"A"'