Installed Cppcheck 2.9 and created a new project, specified the .sln and checked the windows library.
I expect it to report an error about a memory leak since AllocateAndInitializeSid is defined in windows.cfg as allocating memory that needs to be freed by FreeSid. However, it does not report any problem at all. Why is that?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi, I'm trying to learn Cppcheck. I made this program in an Empty Project in Visual Studio:
Installed Cppcheck 2.9 and created a new project, specified the .sln and checked the windows library.
I expect it to report an error about a memory leak since AllocateAndInitializeSid is defined in windows.cfg as allocating memory that needs to be freed by FreeSid. However, it does not report any problem at all. Why is that?
Related ticket: https://trac.cppcheck.net/ticket/6994