I’ve just realized that there is a duplicate topic for this - see some more discussions there: VTK debug leaks with Visual studio 2013. My recommendation still holds - create a minimal reproducible example, without that people can just guess what is wrong in your code.