KindDragon / vld

Visual Leak Detector for Visual C++ 2008-2015
https://kinddragon.github.io/vld/
GNU Lesser General Public License v2.1
1.01k stars 314 forks source link

Leaks reported in STL containers like vectors, map #83

Closed sparkskapil closed 1 year ago

sparkskapil commented 3 years ago

When using VLD with my existing codebase and Microsoft CPP test framework I am getting leaks in xmemory, xtree which are used in vector and map. As these are expected to get deleted when they get out of scope.

I guess this could be because VLD exits before vectors and maps go out of scope.

sparkskapil commented 1 year ago

The issue was missing virtual destructor in some polymorphic classes. Which resulted in incomplete deletion of objects and hence leaks in vectors and maps.