diff --git a/libgnucash/backend/xml/sixtp-dom-generators.cpp b/libgnucash/backend/xml/sixtp-dom-generators.cpp index ed849d5dbb..3a90aae72e 100644 --- a/libgnucash/backend/xml/sixtp-dom-generators.cpp +++ b/libgnucash/backend/xml/sixtp-dom-generators.cpp @@ -205,12 +205,8 @@ double_to_string (double value) static void add_text_to_node (xmlNodePtr node, const gchar* type, gchar* val) { - gchar* newtype = g_strdup (type); - gchar* newval = g_strdup (val); xmlSetProp (node, BAD_CAST "type", BAD_CAST type); xmlNodeSetContent (node, checked_char_cast (val)); - g_free (newtype); - g_free (newval); } static void add_kvp_slot (const char* key, KvpValue* value, void* data);