TS-1475: bad deallocator in XML utils
TS-1475: bad deallocator in LogSock