This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[cppcheck] found a resource leak in os_dep.c
- From: "Martin Ettl" <ettl dot martin at gmx dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sat, 16 Jan 2010 13:22:11 +0100
- Subject: [cppcheck] found a resource leak in os_dep.c
+++ This bug was initially created as a clone of Bug #42304 +++
Hi,
during check of the current trunk with the static code analysis tool cppcheck (https://sourceforge.net/projects/cppcheck/) i discovered a resource leak. Please see the attached patch that fixes the issue.
Best regards
Ettl Martin
Index: os_dep.c
===================================================================
--- os_dep.c (Revision 155013)
+++ os_dep.c (Arbeitskopie)
@@ -1165,6 +1165,7 @@
}
GC_add_roots_inner(O32_BASE(seg), O32_BASE(seg)+O32_SIZE(seg), FALSE);
}
+ fclose(myexefile);
}
# else /* !OS2 */
--
Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 -
sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser