gnucash stable: [gnc-report.cpp] missing g_free in 8106ffb84b

Christopher Lam clam at code.gnucash.org
Wed Jun 5 12:26:52 EDT 2024


Updated	 via  https://github.com/Gnucash/gnucash/commit/ff8c5b58 (commit)
	from  https://github.com/Gnucash/gnucash/commit/f32f6536 (commit)



commit ff8c5b58731493c6dcdbac77ca727bc22867115f
Author: Christopher Lam <christopher.lck at gmail.com>
Date:   Thu Jun 6 00:25:14 2024 +0800

    [gnc-report.cpp] missing g_free in 8106ffb84b

diff --git a/gnucash/report/gnc-report.cpp b/gnucash/report/gnc-report.cpp
index 8146b79252..4181ecc039 100644
--- a/gnucash/report/gnc-report.cpp
+++ b/gnucash/report/gnc-report.cpp
@@ -241,6 +241,7 @@ gnc_run_report_with_error_handling (gint report_id, gchar ** data, gchar **errms
             *errmsg = g_strdup_printf (without_err, gnc_report_name (report));
 
         *data = nullptr;
+        g_free (scm_err);
         return FALSE;
     }
 }



Summary of changes:
 gnucash/report/gnc-report.cpp | 1 +
 1 file changed, 1 insertion(+)



More information about the gnucash-changes mailing list