Fix memory leak in xmlParseEntityDecl error path
When parsing the entity value, it can happen that an external entity with an unsupported encoding is loaded and the parser is stopped. This would lead to a memory leak. A custom SAX callback could also stop the parser. Found with libFuzzer and ASan.
Showing with 8 additions and 8 deletions