gnucash maint: [csv-transactions-export] couple leaks plugged

Christopher Lam clam at code.gnucash.org
Tue Jul 26 12:23:16 EDT 2022


Updated	 via  https://github.com/Gnucash/gnucash/commit/0e81d42e (commit)
	from  https://github.com/Gnucash/gnucash/commit/6b64c70c (commit)



commit 0e81d42e0834dff7c1364742b7e4fe30ca47868d
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Wed Jul 27 00:21:01 2022 +0800

    [csv-transactions-export] couple leaks plugged

diff --git a/gnucash/import-export/csv-exp/csv-transactions-export.c b/gnucash/import-export/csv-exp/csv-transactions-export.c
index 7050a6df9..f709dc443 100644
--- a/gnucash/import-export/csv-exp/csv-transactions-export.c
+++ b/gnucash/import-export/csv-exp/csv-transactions-export.c
@@ -393,6 +393,7 @@ add_price (gchar *so_far, Split *split, gboolean t_void, CsvExportInfo *info)
     conv = csv_txn_test_field_string (info, string_amount);
     result = g_strconcat (so_far, conv, info->end_sep, EOLSTR, NULL);
     g_free (conv);
+    g_free (so_far);
     return result;
 }
 
@@ -649,6 +650,7 @@ void csv_transactions_export (CsvExportInfo *info)
                 DEBUG("Account being processed is : %s", xaccAccountGetName (acc));
                 account_splits (info, acc, fh);
             }
+            g_list_free (info->csva.account_list);
         }
         else
             account_splits (info, info->account, fh);



Summary of changes:
 gnucash/import-export/csv-exp/csv-transactions-export.c | 2 ++
 1 file changed, 2 insertions(+)



More information about the gnucash-changes mailing list