X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 123AB52A10 for ; Wed, 30 Mar 2005 19:06:42 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 82644-03 for ; Wed, 30 Mar 2005 18:06:41 +0000 (GMT) Received: from mail.gmx.net (mail.gmx.de [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id B36275352E for ; Wed, 30 Mar 2005 19:06:39 +0100 (BST) Received: (qmail invoked by alias); 30 Mar 2005 18:06:39 -0000 Received: from dsl-082-082-236-229.arcor-ip.net (EHLO colt.pezone.net) [82.82.236.229] by mail.gmx.net (mp030) with SMTP; 30 Mar 2005 20:06:39 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: Kelly Burkhart Subject: Re: Memory Leak when freeing statement Date: Wed, 30 Mar 2005 20:06:38 +0200 User-Agent: KMail/1.7.1 Cc: pgsql-odbc@postgresql.org References: <1111690332.26601.206.camel@krb06> In-Reply-To: <1111690332.26601.206.camel@krb06> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200503302006.38606.peter_e@gmx.net> X-Y-GMX-Trusted: 0 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.049 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/120 X-Sequence-Number: 5138 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/