From d3f08e7a60c5ae7d5b24fb1ce1b7e5781265b5fe Mon Sep 17 00:00:00 2001 From: Phil Longstaff Date: Sun, 21 Jun 2009 16:11:08 +0000 Subject: [PATCH] Fix memory leak - string not freed when creating SELECT statement git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18146 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/business/business-core/sql/gnc-tax-table-sql.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/business/business-core/sql/gnc-tax-table-sql.c b/src/business/business-core/sql/gnc-tax-table-sql.c index c01a69ae5f..55f34ed4a8 100644 --- a/src/business/business-core/sql/gnc-tax-table-sql.c +++ b/src/business/business-core/sql/gnc-tax-table-sql.c @@ -189,6 +189,7 @@ load_taxtable_entries( GncSqlBackend* be, GncTaxTable* tt ) g_value_set_string( &value, guid_buf ); buf = g_strdup_printf( "SELECT * FROM %s WHERE taxtable='%s'", TTENTRIES_TABLE_NAME, guid_buf ); stmt = gnc_sql_connection_create_statement_from_sql( be->conn, buf ); + g_free( buf ); result = gnc_sql_execute_select_statement( be, stmt ); gnc_sql_statement_dispose( stmt ); if( result != NULL ) {