Bug#566604: cppcheck: false positive fd leak

2010-01-24 Thread Reijo Tomperi
Hi, Thanks for the report. I submitted a ticket to upstream: http://sourceforge.net/apps/trac/cppcheck/ticket/1306 -- Reijo -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Bug#566604: cppcheck: false positive fd leak

2010-01-23 Thread Helmut Grohne
Package: cppcheck Version: 1.39-1 Severity: normal $ cat confuse_cppcheck.c #include #include void confuse(void) { int fd=-1; do { if(fd >= 0) close(fd); fd = open("tmp", O_RDONLY); } while(fd >= 0); } $ cppcheck co