CAMEL-7888 Fix the issue that HL7Decoder leaks memory