Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
On line 557 of xml-tree.c, root->processing_instructions is freed if root->processing_instructions[0] is not NULL. There is however a possibility that the wrapping IF statement is never entered due to the loop above the IF statement destroying root->processing_instructions[0].