gnucash maint: [qofquery] q->terms g_list members must be freed
Christopher Lam
clam at code.gnucash.org
Thu Jun 3 05:16:23 EDT 2021
Updated via https://github.com/Gnucash/gnucash/commit/a3e3823e (commit)
from https://github.com/Gnucash/gnucash/commit/9f1c179f (commit)
commit a3e3823ee7b38c76239ced3f673b3a7f5c404bde
Author: Christopher Lam <christopher.lck at gmail.com>
Date: Thu Jun 3 17:05:10 2021 +0800
[qofquery] q->terms g_list members must be freed
diff --git a/libgnucash/engine/qofquery.cpp b/libgnucash/engine/qofquery.cpp
index 3412f9160..a90004d62 100644
--- a/libgnucash/engine/qofquery.cpp
+++ b/libgnucash/engine/qofquery.cpp
@@ -266,7 +266,7 @@ static void free_members (QofQuery *q)
free_sort (&(q->secondary_sort));
free_sort (&(q->tertiary_sort));
- g_list_free(q->terms);
+ g_list_free_full (q->terms, g_free);
q->terms = NULL;
g_list_free(q->books);
Summary of changes:
libgnucash/engine/qofquery.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the gnucash-changes
mailing list