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 C49F653469 for ; Thu, 24 Mar 2005 18:52:21 +0000 (GMT) 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 25926-09 for ; Thu, 24 Mar 2005 18:52:13 +0000 (GMT) Received: from tbmail.tradebot.com (mail.tradebotsystems.com [209.83.219.42]) by svr1.postgresql.org (Postfix) with ESMTP id 13F3A5343D for ; Thu, 24 Mar 2005 18:52:12 +0000 (GMT) Received: from 192.168.200.29 ([192.168.200.29]) by tbmail.tradebot.com ([192.168.1.50]) with Microsoft Exchange Server HTTP-DAV ; Thu, 24 Mar 2005 18:52:12 +0000 Received: from krb06 by tbmail; 24 Mar 2005 12:52:12 -0600 Subject: Memory Leak when freeing statement From: Kelly Burkhart To: pgsql-odbc@postgresql.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Tradebot Systems, Inc. Message-Id: <1111690332.26601.206.camel@krb06> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Thu, 24 Mar 2005 12:52:12 -0600 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.061 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200503/92 X-Sequence-Number: 5110 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