my application has the pattern of publishing seldomly to AWS. If I repeatedly call MQTT_ConnectToBroker I saw that I'm leaking about 90 bytes of memory each time. I then used the functions which are called through the XDK_MQTT API directly in my code and utilized MQTT_AGENT_Disconnect after each publish. By this way I could realize this functionality without leaking memory.
Would it be possible include such functionality in the API directly? I solved the problem for myself now, but I guess I'm not the only one who wrestled with this.