mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 797500 - valgrind errors - new/delete vs malloc/free
Mismatched new/g_free() Change to new/guid_free() which calls delete
This commit is contained in:
@@ -209,12 +209,12 @@ equals_node_val_vs_guid (xmlNodePtr node, const GncGUID* id)
|
||||
|
||||
if (guid_compare (cmpid, id) == 0)
|
||||
{
|
||||
g_free (cmpid);
|
||||
guid_free (cmpid);
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
g_free (cmpid);
|
||||
guid_free (cmpid);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user