Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-odbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group