public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/47161] New: [cppcheck][PATCH] found a memory leak in gcc/gcc/go/gofrontend/expressions.cc
@ 2011-01-04 0:40 ettl.martin at gmx dot de
2011-01-04 15:46 ` [Bug go/47161] " ettl.martin at gmx dot de
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: ettl.martin at gmx dot de @ 2011-01-04 0:40 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47161
Summary: [cppcheck][PATCH] found a memory leak in
gcc/gcc/go/gofrontend/expressions.cc
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
AssignedTo: ian@airs.com
ReportedBy: ettl.martin@gmx.de
Created attachment 22891
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22891
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug go/47161] [cppcheck][PATCH] found a memory leak in gcc/gcc/go/gofrontend/expressions.cc
2011-01-04 0:40 [Bug go/47161] New: [cppcheck][PATCH] found a memory leak in gcc/gcc/go/gofrontend/expressions.cc ettl.martin at gmx dot de
@ 2011-01-04 15:46 ` ettl.martin at gmx dot de
2011-01-05 5:33 ` ian at gcc dot gnu.org
2011-01-05 5:35 ` ian at airs dot com
2 siblings, 0 replies; 4+ messages in thread
From: ettl.martin at gmx dot de @ 2011-01-04 15:46 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47161
--- Comment #1 from Martin Ettl <ettl.martin at gmx dot de> 2011-01-04 15:46:07 UTC ---
Created attachment 22898
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22898
fixing more memleaks
A second run of cppcheck reveald further possible memory leaks. See "patch
go_memleaks.patch" that fixes all found issues.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug go/47161] [cppcheck][PATCH] found a memory leak in gcc/gcc/go/gofrontend/expressions.cc
2011-01-04 0:40 [Bug go/47161] New: [cppcheck][PATCH] found a memory leak in gcc/gcc/go/gofrontend/expressions.cc ettl.martin at gmx dot de
2011-01-04 15:46 ` [Bug go/47161] " ettl.martin at gmx dot de
@ 2011-01-05 5:33 ` ian at gcc dot gnu.org
2011-01-05 5:35 ` ian at airs dot com
2 siblings, 0 replies; 4+ messages in thread
From: ian at gcc dot gnu.org @ 2011-01-05 5:33 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47161
--- Comment #2 from ian at gcc dot gnu.org <ian at gcc dot gnu.org> 2011-01-05 05:33:37 UTC ---
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug go/47161] [cppcheck][PATCH] found a memory leak in gcc/gcc/go/gofrontend/expressions.cc
2011-01-04 0:40 [Bug go/47161] New: [cppcheck][PATCH] found a memory leak in gcc/gcc/go/gofrontend/expressions.cc ettl.martin at gmx dot de
2011-01-04 15:46 ` [Bug go/47161] " ettl.martin at gmx dot de
2011-01-05 5:33 ` ian at gcc dot gnu.org
@ 2011-01-05 5:35 ` ian at airs dot com
2 siblings, 0 replies; 4+ messages in thread
From: ian at airs dot com @ 2011-01-05 5:35 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47161
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #3 from Ian Lance Taylor <ian at airs dot com> 2011-01-05 05:35:37 UTC ---
Patch committed. Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-01-05 5:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-04 0:40 [Bug go/47161] New: [cppcheck][PATCH] found a memory leak in gcc/gcc/go/gofrontend/expressions.cc ettl.martin at gmx dot de
2011-01-04 15:46 ` [Bug go/47161] " ettl.martin at gmx dot de
2011-01-05 5:33 ` ian at gcc dot gnu.org
2011-01-05 5:35 ` ian at airs dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).