I prepared example based on HTTP client demo. Just click "Send request". It create file "memory.txt" in executable directory, with heaptrc summary. Maybe someone can debug this better from me, if not then I report this as heaptrc bug.
Demo in attachments