Generally i am quite vigilant about what i allocate and what resources i might be using, and define `destructors` accordingly. But in this case i was only using `createThread` and `joinThread` standard routines , i only discovered the issue while benchmarking .
I also came across some thread variables related memory leak in `issues` . Thanks for illustrating your point, i would try to understand possible scenarios with thread variables in greater detail.