This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]