pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: Kelly Burkhart <kelly@tradebotsystems.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Memory Leak when freeing statement
Date: Wed, 30 Mar 2005 20:06:38 +0200
Message-ID: <200503302006.38606.peter_e@gmx.net> (raw)
In-Reply-To: <1111690332.26601.206.camel@krb06>
References: <1111690332.26601.206.camel@krb06>

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/



view thread (3+ messages)  latest in thread

Message-ID: <200503302006.38606.peter_e@gmx.net>
Permalink:  ../200503302006.38606.peter_e@gmx.net/
Also on:    postgresql.org/message-id/200503302006.38606.peter_e@gmx.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: peter_e@gmx.net, kelly@tradebotsystems.com
  Subject: Re: Memory Leak when freeing statement
  In-Reply-To: <200503302006.38606.peter_e@gmx.net>
  References: <1111690332.26601.206.camel@krb06> <200503302006.38606.peter_e@gmx.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox