https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58237
--- Comment #6 from David Binderman <dcb314 at hotmail dot com> --- I tried out recent cppcheck on recent gcc trunk and found these resource leaks: trunk/libvtv/scripts/sum-vtv-counts.c:94:4: error: Resource leak: fp_in [resourceLeak] trunk/libvtv/scripts/sum-vtv-counts.c:105:7: error: Resource leak: fp_in [resourceLeak] trunk/zlib/contrib/minizip/mztools.c:290:3: error: Resource leak: fpOutCD [resourceLeak] The first two are false positives, cppcheck doesn't notice the leak is in main. Last one has a missing sanity check for fpOutCD != NULL, but since it is in a /contrib/ directory, it won't get fixed here. Does the recent patch find the same or different resource leaks on gcc trunk ?