gnucash stable: [dialog-totd.c] g_free a 6k char*

Christopher Lam clam at code.gnucash.org
Sun Jun 25 05:01:54 EDT 2023


Updated	 via  https://github.com/Gnucash/gnucash/commit/bba1842e (commit)
	from  https://github.com/Gnucash/gnucash/commit/4bba1827 (commit)



commit bba1842e09dcbd012e5830b7fcfae95fef27f3fb
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Sun Jun 25 00:55:10 2023 +0800

    [dialog-totd.c] g_free a 6k char*

diff --git a/gnucash/gnome-utils/dialog-totd.c b/gnucash/gnome-utils/dialog-totd.c
index 01e16f2376..3e5e634b9a 100644
--- a/gnucash/gnome-utils/dialog-totd.c
+++ b/gnucash/gnome-utils/dialog-totd.c
@@ -240,6 +240,7 @@ gnc_totd_initialize (void)
             g_free(tip_list[tip]);
             tip_list[tip] = new_str;
         }
+        g_free (contents);
     }
     if (tip_count < 1)
         return FALSE;



Summary of changes:
 gnucash/gnome-utils/dialog-totd.c | 1 +
 1 file changed, 1 insertion(+)



More information about the gnucash-changes mailing list