tinfo is a static global variable in both test programs, so the memory is still reachable at program exit; as such this isn't really a memory leak. Also, as these are test programs, it's only important to fix memory leaks in them if they create false positives in static or dynamic analysis tools which detect memory bugs. Was this issue discovered using a tool, or through code inspection?