gnucash stable: Multiple changes pushed

John Ralls jralls at code.gnucash.org
Mon Jan 6 00:34:14 EST 2025


Updated	 via  https://github.com/Gnucash/gnucash/commit/166b3835 (commit)
	 via  https://github.com/Gnucash/gnucash/commit/deee65d0 (commit)
	from  https://github.com/Gnucash/gnucash/commit/83b49c34 (commit)



commit 166b383568601d706e0898d79b574aab6e139dc5
Merge: 83b49c34fe deee65d0d4
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Jan 5 21:11:23 2025 -0800

    Merge Peter Zmanovsky's 'fix_wrong_free' into stable.


commit deee65d0d41b8540ddede87f26bdc29e8231b99c
Author: peter15914 <48548636+peter15914 at users.noreply.github.com>
Date:   Sun Jan 5 23:12:25 2025 +0500

    Fix incorrect deallocation type
    
    Objects created with dom_tree_to_guid must be destroyed with guid_free.

diff --git a/libgnucash/backend/xml/gnc-account-xml-v2.cpp b/libgnucash/backend/xml/gnc-account-xml-v2.cpp
index 6e7ce57e8a..8b11aa6f91 100644
--- a/libgnucash/backend/xml/gnc-account-xml-v2.cpp
+++ b/libgnucash/backend/xml/gnc-account-xml-v2.cpp
@@ -375,7 +375,7 @@ account_parent_handler (xmlNodePtr node, gpointer act_pdata)
     parent = xaccAccountLookup (gid, pdata->book);
     if (!parent)
     {
-        g_free (gid);
+        guid_free (gid);
         g_return_val_if_fail (parent, FALSE);
     }
 



Summary of changes:
 libgnucash/backend/xml/gnc-account-xml-v2.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list