Created attachment 22891 [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 a memory leak in file gcc/gcc/go/gofrontend/expressions.cc. Please refer the attached patch that fixes the issue. Best regards from the cppcheck team Ettl Martin
Created attachment 22898 [details] fixing more memleaks A second run of cppcheck reveald further possible memory leaks. See "patch go_memleaks.patch" that fixes all found issues.
Author: ian Date: Wed Jan 5 05:33:32 2011 New Revision: 168504 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168504 Log: PR go/47158 PR go/47159 PR go/47160 PR go/47161 Fix space leaks. Patch from Ettl Martin. Modified: trunk/gcc/go/gofrontend/expressions.cc trunk/gcc/go/gofrontend/gogo-tree.cc trunk/gcc/go/gofrontend/import-archive.cc trunk/gcc/go/gofrontend/import.cc
Patch committed. Thanks.