const std::wstring test = L"something";
constchar LOG = "LOGFILE.txt";
these lines of code are defined in a .h files. I have included these .h files in different .cpp files and have used the variables in my codes.
When I use visual leak detector to find leaks in my code, the leak detector reports these lines of code as leaks. I can't understand it because these variables are not memories allocated dynamically in the heap, so they are not required to be deleted. So why visual leak detector considers them as memory leaks?