Hi,
The false positive is now fixed in upstream (few minutes ago). Expected
release date for 1.39 is November 29th.
Exactly that, cppcheck didn't spot the missing close (it was
intentional, though; it is a test case I extracted from a similar
piece of real code).
Do you perhaps mean that 1.38 reports a leak on line 6 (false positive)
and not on the line 8 (false negative)?
$ ./1.38.cppcheck p.cpp -a
Checking p.cpp...
[p.cpp:6]: (error) Resource leak: fd
If so, that is now also fixed in the upstream.
$ ./cppcheck p.cpp -a
Checking p.cpp...
[p.cpp:8]: (error) Resource leak: fd
--
Reijo
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org