[import-backend.cpp] match_list members must be freed

they were allocated in split_find_match with g_new0
This commit is contained in:
Christopher Lam 2023-08-08 20:22:38 +08:00
parent e91752dba2
commit 0909fd9b0f

View File

@ -340,7 +340,7 @@ void gnc_import_TransInfo_delete (GNCImportTransInfo *info)
{ {
if (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 the transaction exists and is still open, it must be destroyed*/
if (xaccTransIsOpen(info->trans)) if (xaccTransIsOpen(info->trans))
{ {