Hi, I found an inconsistent behavior in the resourceLeak detector. Please see the two programs below.
Cppcheck should report consistent resourceLeak warnings for both programs. However, it reports a warning for the first program but does not report any warning for the second one. Therefore, I believe this is inconsistent behavior.
Hi, I found an inconsistent behavior in the resourceLeak detector. Please see the two programs below.
Cppcheck should report consistent resourceLeak warnings for both programs. However, it reports a warning for the first program but does not report any warning for the second one. Therefore, I believe this is inconsistent behavior.
First Program
Second Program
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/14842