http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47171
Summary: [cppcheck][PATCH] found a resource leak in gcc/gcc/java/resource.c Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: java AssignedTo: unassig...@gcc.gnu.org ReportedBy: ettl.mar...@gmx.de Created attachment 22901 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22901 proposed patch to fix the issue during a check of gcc's sources with the static code analysis tool cppcheck (http://sourceforge.net/projects/cppcheck/) the tool discoverd resource leaks in file gcc/gcc/java/resource.c . Please refer the attached patch that fixes the issue. Best regards from the cppcheck team Ettl Martin