Fixed memory leak in XmlBodyDeserializer

Resolves issue #923