False positive for std::string initialized in header
mattdurak opened this issue · 0 comments
mattdurak commented
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
.