Index: main/xmldoc.c =================================================================== --- main/xmldoc.c (revision 375583) +++ main/xmldoc.c (working copy) @@ -2276,6 +2276,7 @@ default: item = xmldoc_build_documentation_item(node, name, type); } + ast_xml_free_attr(name); if (item) { ao2_link(docs, item); @@ -2341,6 +2342,7 @@ while ((doctree = AST_RWLIST_REMOVE_HEAD(&xmldoc_tree, entry))) { ast_free(doctree->filename); ast_xml_close(doctree->doc); + ast_free(doctree); } AST_RWLIST_UNLOCK(&xmldoc_tree);