diff --git a/libgnucash/engine/qofquery.cpp b/libgnucash/engine/qofquery.cpp index 3412f9160a..a90004d623 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);