From deee65d0d41b8540ddede87f26bdc29e8231b99c Mon Sep 17 00:00:00 2001 From: peter15914 <48548636+peter15914@users.noreply.github.com> Date: Sun, 5 Jan 2025 23:12:25 +0500 Subject: [PATCH] Fix incorrect deallocation type Objects created with dom_tree_to_guid must be destroyed with guid_free. --- libgnucash/backend/xml/gnc-account-xml-v2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgnucash/backend/xml/gnc-account-xml-v2.cpp b/libgnucash/backend/xml/gnc-account-xml-v2.cpp index 6e7ce57e8a1..8b11aa6f917 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); }