Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

False positives detected for static member std::string #72

Open
DougRogers opened this issue Jan 15, 2020 · 0 comments
Open

False positives detected for static member std::string #72

DougRogers opened this issue Jan 15, 2020 · 0 comments

Comments

@DougRogers
Copy link

I have a class that defines a static member:
class RawDecoder { public: static std::string cam_profile; };
declared as
std::string RawDecoder::cam_profile;
which is reported as a leak
CRT Alloc ID: 195 Leak Hash: 0x46AD681D, Count: 1, Total 16 bytes Call Stack (TID 5096): ucrtbased.dll!malloc() d:\agent\_work\5\s\src\vctools\crt\vcstartup\src\heap\new_scalar.cpp (35): Phot.exe!operator new() + 0xA bytes C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\xmemory (52): Phot.exe!std::_Default_allocate_traits::_Allocate() C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\xmemory (180): Phot.exe!std::_Allocate<16,std::_Default_allocate_traits,0>() + 0xA bytes C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\xmemory (785): Phot.exe!std::allocator<std::_Container_proxy>::allocate() C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\xmemory (1098): Phot.exe!std::_Container_base12::_Alloc_proxy<std::allocator<std::_Container_proxy> >() + 0xF bytes C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.24.28314\include\xstring (2286): Phot.exe!std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string<char,std::char_traits<char>,std::allocator<char> >() + 0x30 bytes C:\Users\drogers\Documents\Visual Studio 2010\Projects\ImageViewers\dcraw\dcraw.cpp (116): Phot.exe!dynamic initializer for 'RawDecoder::cam_profile''() + 0x10 bytes
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant