[Bug gcov-profile/49333] New: [cppcheck][PATCH] found a resource leak in gcc/gcc/gcov-io.c

ettl.martin at gmx dot de gcc-bugzilla@gcc.gnu.org
Wed Jun 8 22:18:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49333

           Summary: [cppcheck][PATCH] found a resource leak in
                    gcc/gcc/gcov-io.c
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: gcov-profile
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ettl.martin@gmx.de


Created attachment 24467
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24467
proposed patch to fix the resource leak

During a check with the static code analysis tool cppcheck ( available on
sourcforge), i discovered to resource leaks. A resource leak in this case
means, it was forgotten to realease an open filepointer.

Please refer the attached patch.

Best regards from the cppcheck team.

Ettl Martin



More information about the Gcc-bugs mailing list