gnucash maint: [account.cpp] char* must be freed
Christopher Lam
clam at code.gnucash.org
Sat Apr 2 02:15:59 EDT 2022
Updated via https://github.com/Gnucash/gnucash/commit/ee8729df (commit)
from https://github.com/Gnucash/gnucash/commit/11458bf8 (commit)
commit ee8729dfb62642a78b04347891330fa0a8bc02e5
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Sat Apr 2 14:14:50 2022 +0800
[account.cpp] char* must be freed
diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp
index e1e8e0f3d..92f4d2bf5 100644
--- a/libgnucash/engine/Account.cpp
+++ b/libgnucash/engine/Account.cpp
@@ -6025,6 +6025,8 @@ gnc_account_imap_get_info (Account *acc, const char *category)
qof_instance_foreach_slot (QOF_INSTANCE(acc), IMAP_FRAME, category,
build_non_bayes, &imapInfo);
}
+ g_free (imapInfo.head);
+ g_free (imapInfo.category);
return g_list_reverse(imapInfo.list);
}
Summary of changes:
libgnucash/engine/Account.cpp | 2 ++
1 file changed, 2 insertions(+)
More information about the gnucash-changes
mailing list