pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kelly Burkhart <kelly@tradebotsystems.com>
To: pgsql-odbc@postgresql.org
Subject: Memory Leak when freeing statement
Date: Thu, 24 Mar 2005 12:52:12 -0600
Message-ID: <1111690332.26601.206.camel@krb06> (raw)

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.

-K



view thread (3+ messages)  latest in thread

Message-ID: <1111690332.26601.206.camel@krb06>
Permalink:  ../1111690332.26601.206.camel@krb06/
Also on:    postgresql.org/message-id/1111690332.26601.206.camel@krb06

 · 

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: kelly@tradebotsystems.com
  Subject: Re: Memory Leak when freeing statement
  In-Reply-To: <1111690332.26601.206.camel@krb06>
  References: <1111690332.26601.206.camel@krb06>

* 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