diff --git a/MagickCore/string.c b/MagickCore/string.c
index 31023be..718eccd 100644
--- a/MagickCore/string.c
+++ b/MagickCore/string.c
@@ -103,7 +103,7 @@
 %  given string.
 %
 %  An extended string is the string length, plus an extra MaxTextExtent space
-%  to allow for the string to be activally worked on.
+%  to allow for the string to be actively worked on.
 %
 %  The returned string shoud be freed using DestoryString().
 %
diff --git a/MagickCore/xml-tree.c b/MagickCore/xml-tree.c
index 4181406..4641f01 100644
--- a/MagickCore/xml-tree.c
+++ b/MagickCore/xml-tree.c
@@ -479,9 +479,8 @@
   /*
     Free root tag allocations.
   */
-  return;
   root=(XMLTreeRoot *) xml_info;
-  for (i=NumberPredefinedEntities; root->entities[i]; i+=2)
+  for (i=NumberPredefinedEntities; root->entities[i] != (char *) NULL; i+=2)
     root->entities[i+1]=DestroyString(root->entities[i+1]);
   root->entities=(char **) RelinquishMagickMemory(root->entities);
   for (i=0; root->attributes[i] != (char **) NULL; i++)
@@ -1021,7 +1020,6 @@
     *node,
     *previous;
 
-  DestroyXMLTreeRoot(xml_info);
   child->ordered=(XMLTreeInfo *) NULL;
   child->sibling=(XMLTreeInfo *) NULL;
   child->next=(XMLTreeInfo *) NULL;