gnucash maint: g_list_reverse reverses in place, don't free trans_list_remain.

John Ralls jralls at code.gnucash.org
Thu Sep 16 21:08:53 EDT 2021


Updated	 via  https://github.com/Gnucash/gnucash/commit/37196fa0 (commit)
	from  https://github.com/Gnucash/gnucash/commit/ca274e36 (commit)



commit 37196fa015153928702b41a70d97671e2a9f0675
Author: John Ralls <jralls at ceridwen.us>
Date:   Thu Sep 16 18:08:20 2021 -0700

    g_list_reverse reverses in place, don't free trans_list_remain.

diff --git a/gnucash/import-export/ofx/gnc-ofx-import.c b/gnucash/import-export/ofx/gnc-ofx-import.c
index f4433b266..64c5cf435 100644
--- a/gnucash/import-export/ofx/gnc-ofx-import.c
+++ b/gnucash/import-export/ofx/gnc-ofx-import.c
@@ -1190,7 +1190,6 @@ runMatcher(ofx_info* info, char * selected_filename, gboolean go_to_next_file)
     }
     g_list_free (info->trans_list);
     info->trans_list = g_list_reverse (trans_list_remain);
-    g_list_free (trans_list_remain);
 
     // See whether the view has anything in it and warn the user if not.
     if (gnc_gen_trans_list_empty (info->gnc_ofx_importer_gui))



Summary of changes:
 gnucash/import-export/ofx/gnc-ofx-import.c | 1 -
 1 file changed, 1 deletion(-)



More information about the gnucash-changes mailing list