This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug gcov-profile/49333] [cppcheck][PATCH] found a resource leak in gcc/gcc/gcov-io.c
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 8 Jun 2011 22:25:49 +0000
- Subject: [Bug gcov-profile/49333] [cppcheck][PATCH] found a resource leak in gcc/gcc/gcov-io.c
- Auto-submitted: auto-generated
- References: <bug-49333-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49333
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-06-08 22:25:35 UTC ---
Oh the second hunk of the patch is very bad as it closes a file descriptor that
has an associated FILE to it.