Some help is needed with a code review of the KMQTT Client library (
https://gitlab.com/napperley/kmqtt-client ). I am trying to locate a
needle in the haystack, with finding the cause of a problem where a double free occurs ( eg
double free or corruption (fasttop) ). This problem seems to occur at the
onMessageArrived event handler level although I am not too sure. Would be helpful having someone experienced with memory management that can have a look (as a second set of 👀) to see what possible memory issues exist, and provide some advise on handling/fixing them.