mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
067927c22c
commit
d3f08e7a60
@ -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 ) {
|
||||
|
Loading…
Reference in New Issue
Block a user