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
This commit is contained in:
Phil Longstaff 2009-06-21 16:11:08 +00:00
parent 067927c22c
commit d3f08e7a60

View File

@ -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 ) {