This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/49333] New: [cppcheck][PATCH] found a resource leak in gcc/gcc/gcov-io.c
- From: "ettl.martin at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 8 Jun 2011 22:18:11 +0000
- Subject: [Bug gcov-profile/49333] New: [cppcheck][PATCH] found a resource leak in gcc/gcc/gcov-io.c
- Auto-submitted: auto-generated
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