gnucash maint: gchar *gnc_account_get_full_name must be freed
Christopher Lam
clam at code.gnucash.org
Thu Aug 5 11:13:39 EDT 2021
Updated via https://github.com/Gnucash/gnucash/commit/86bc9d93 (commit)
from https://github.com/Gnucash/gnucash/commit/de1ad936 (commit)
commit 86bc9d93a7be0d92f5083eced12b73eab089719c
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Thu Aug 5 22:09:24 2021 +0800
gchar *gnc_account_get_full_name must be freed
The gnc-account-sel.c one was causing a runaway leak -- leaked
full_name for every account (except the matched account) in the
GNCAccountSel. Interestingly the original commit[*] suggests the name
should have been freed correctly however the braces prohibited it.
[*] e5b0bdbe109abad193f8419b485ce34d45cf5cc5
Summary of changes:
gnucash/gnome-utils/dialog-account.c | 16 ++++++++++------
gnucash/gnome-utils/gnc-account-sel.c | 4 +---
gnucash/import-export/import-account-matcher.c | 9 ++++++---
gnucash/import-export/import-main-matcher.c | 22 +++++++++++++++-------
4 files changed, 32 insertions(+), 19 deletions(-)
More information about the gnucash-patches
mailing list