Package: cppcheck Version: 1.39-1 Severity: normal $ cat confuse_cppcheck.c #include <unistd.h> #include <fcntl.h>
void confuse(void) { int fd=-1; do { if(fd >= 0) close(fd); fd = open("tmp", O_RDONLY); } while(fd >= 0); } $ cppcheck confuse_cppcheck.c Checking confuse_cppcheck.c... [confuse_cppcheck.c:11]: (error) Resource leak: fd $ Dunno whether you can fix this, but I wanted to report it. :-) Helmut PS: Did I mention that cppcheck is a great tool? -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org