don't leak an extra copy of the values

* e-xml-hash-utils.c (e_xml_to_hash): don't leak an extra copy of
        the values

svn path=/trunk/; revision=21497
This commit is contained in:
Dan Winship
2003-06-20 14:36:58 +00:00
parent 1c18cd11c1
commit a6056c7493
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-06-19 Dan Winship <danw@ximian.com>
* e-xml-hash-utils.c (e_xml_to_hash): don't leak an extra copy of
the values
2003-06-14 Larry Ewing <lewing@ximian.com> 2003-06-14 Larry Ewing <lewing@ximian.com>
* e-name-western.c (e_name_western_get_suffix_at_str_end): free * e-name-western.c (e_name_western_get_suffix_at_str_end): free

View File

@ -54,6 +54,7 @@ e_xml_to_hash (xmlDoc *doc, EXmlHashType type)
} }
g_hash_table_insert (hash, g_strdup (key), g_strdup (value)); g_hash_table_insert (hash, g_strdup (key), g_strdup (value));
xmlFree (value);
} }
return hash; return hash;