Created attachment 22901 [details]
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