Open mattdurak opened 5 years ago
Given a sample header as follows:
#pragma once #include <string> namespace my_string { const std::string the_string("foobar"); }
VLD is detecting a leak of the allocation of the string.
It appears that the helper CallStack::isCrtStartupFunction needs to also filter out the function initterm (currently it only checks for initterm_e.
CallStack::isCrtStartupFunction
initterm
initterm_e
Given a sample header as follows:
VLD is detecting a leak of the allocation of the string.
It appears that the helper
CallStack::isCrtStartupFunction
needs to also filter out the functioninitterm
(currently it only checks forinitterm_e
.