]> granicus.if.org Git - imagemagick/commitdiff
Revert XML parser patch
authorCristy <urban-warrior@imagemagick.org>
Sun, 21 Jan 2018 14:10:47 +0000 (09:10 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 21 Jan 2018 14:10:47 +0000 (09:10 -0500)
Credit OSS-Fuzz

MagickCore/xml-tree.c

index 989a520e80685ebb5de93d7bc5befb5ede980177..bab8f7c12d0ecac173f25bf2ac0bc070896427cb 100644 (file)
@@ -2307,8 +2307,6 @@ MagickExport XMLTreeInfo *NewXMLTree(const char *xml,ExceptionInfo *exception)
   utf8=DestroyString(utf8);
   if (root->node == (XMLTreeInfo *) NULL)
     return(&root->root);
-  if (l != 0)
-    (void) DestroyXMLTreeAttributes(attributes);
   if (root->node->tag == (char *) NULL)
     {
       (void) ThrowMagickException(exception,GetMagickModule(),OptionWarning,