Fixed a memory leak for payload parse errors
Merge pull request #284 from telefonicaid/bug/leak_at_payload_parse_error

Fixed a memory leak for payload parse errors