From 0909fd9b0f8957c8144b8d5b1346cb5be95dcae8 Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Tue, 8 Aug 2023 20:22:38 +0800 Subject: [PATCH] [import-backend.cpp] match_list members must be freed they were allocated in split_find_match with g_new0 --- gnucash/import-export/import-backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/import-export/import-backend.cpp b/gnucash/import-export/import-backend.cpp index 7fe944b25a..5fbf9a082a 100644 --- a/gnucash/import-export/import-backend.cpp +++ b/gnucash/import-export/import-backend.cpp @@ -340,7 +340,7 @@ void gnc_import_TransInfo_delete (GNCImportTransInfo *info) { if (info) { - g_list_free (info->match_list); + g_list_free_full (info->match_list, g_free); /*If the transaction exists and is still open, it must be destroyed*/ if (xaccTransIsOpen(info->trans)) {