[fix] Release memory on MQTT_SERIALISER_RC_ERROR