gnucash stable: [import-backend.cpp] match_list members must be freed
Christopher Lam
clam at code.gnucash.org
Tue Aug 8 08:24:12 EDT 2023
Updated via https://github.com/Gnucash/gnucash/commit/0909fd9b (commit)
from https://github.com/Gnucash/gnucash/commit/e91752db (commit)
commit 0909fd9b0f8957c8144b8d5b1346cb5be95dcae8
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Tue Aug 8 20:22:38 2023 +0800
[import-backend.cpp] match_list members must be freed
they were allocated in split_find_match with g_new0
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))
{
Summary of changes:
gnucash/import-export/import-backend.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list