once the breakpoint is achieved you could then do a fine analysis from the allocation an move to begin to see the condition leading to the missing deallocation. cleaned up the person of a number of the string formatting function. employed the trio library code to supply the just one