public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug go/47158] New: [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc
@ 2011-01-04 0:26 ettl.martin at gmx dot de
2011-01-04 1:48 ` [Bug go/47158] " ian at airs dot com
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: ettl.martin at gmx dot de @ 2011-01-04 0:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47158
Summary: [cppcheck][PATCH] found a memory leaks in
gcc/gcc/go/gofrontend/gogo-tree.cc
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: go
AssignedTo: ian@airs.com
ReportedBy: ettl.martin@gmx.de
Created attachment 22888
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22888
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 two memory leaks
in file gcc/gcc/go/gofrontend/gogo-tree.cc. Please refer the attached patch
that fixes the issues.
Best regards from the cppcheck team
Ettl Martin
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug go/47158] [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc
2011-01-04 0:26 [Bug go/47158] New: [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc ettl.martin at gmx dot de
@ 2011-01-04 1:48 ` ian at airs dot com
2011-01-04 10:54 ` ettl.martin at gmx dot de
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ian at airs dot com @ 2011-01-04 1:48 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47158
--- Comment #1 from Ian Lance Taylor <ian at airs dot com> 2011-01-04 01:48:23 UTC ---
Thanks for the patches. Are you OK with signing the copyright license
agreement described at the end of http://golang.org/doc/contribute.html ?
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug go/47158] [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc
2011-01-04 0:26 [Bug go/47158] New: [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc ettl.martin at gmx dot de
2011-01-04 1:48 ` [Bug go/47158] " ian at airs dot com
@ 2011-01-04 10:54 ` ettl.martin at gmx dot de
2011-01-05 1:08 ` ian at airs dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ettl.martin at gmx dot de @ 2011-01-04 10:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47158
--- Comment #2 from Martin Ettl <ettl.martin at gmx dot de> 2011-01-04 10:54:05 UTC ---
Yes, of course!
2011/1/4 ian at airs dot com <gcc-bugzilla@gcc.gnu.org>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47158
>
> --- Comment #1 from Ian Lance Taylor <ian at airs dot com> 2011-01-04
> 01:48:23 UTC ---
> Thanks for the patches. Are you OK with signing the copyright license
> agreement described at the end of http://golang.org/doc/contribute.html ?
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug go/47158] [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc
2011-01-04 0:26 [Bug go/47158] New: [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc ettl.martin at gmx dot de
2011-01-04 1:48 ` [Bug go/47158] " ian at airs dot com
2011-01-04 10:54 ` ettl.martin at gmx dot de
@ 2011-01-05 1:08 ` ian at airs dot com
2011-01-05 1:20 ` ettl.martin at gmx dot de
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: ian at airs dot com @ 2011-01-05 1:08 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47158
--- Comment #3 from Ian Lance Taylor <ian at airs dot com> 2011-01-05 01:07:49 UTC ---
Let me know when you have signed it. Thanks.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug go/47158] [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc
2011-01-04 0:26 [Bug go/47158] New: [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc ettl.martin at gmx dot de
` (2 preceding siblings ...)
2011-01-05 1:08 ` ian at airs dot com
@ 2011-01-05 1:20 ` ettl.martin at gmx dot de
2011-01-05 5:34 ` ian at gcc dot gnu.org
2011-01-05 5:35 ` ian at airs dot com
5 siblings, 0 replies; 7+ messages in thread
From: ettl.martin at gmx dot de @ 2011-01-05 1:20 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47158
--- Comment #4 from Martin Ettl <ettl.martin at gmx dot de> 2011-01-05 01:19:53 UTC ---
(In reply to comment #3)
> Let me know when you have signed it. Thanks.
I have signed a few minutes ago.
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug go/47158] [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc
2011-01-04 0:26 [Bug go/47158] New: [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc ettl.martin at gmx dot de
` (3 preceding siblings ...)
2011-01-05 1:20 ` ettl.martin at gmx dot de
@ 2011-01-05 5:34 ` ian at gcc dot gnu.org
2011-01-05 5:35 ` ian at airs dot com
5 siblings, 0 replies; 7+ messages in thread
From: ian at gcc dot gnu.org @ 2011-01-05 5:34 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47158
--- Comment #5 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] 7+ messages in thread
* [Bug go/47158] [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc
2011-01-04 0:26 [Bug go/47158] New: [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc ettl.martin at gmx dot de
` (4 preceding siblings ...)
2011-01-05 5:34 ` ian at gcc dot gnu.org
@ 2011-01-05 5:35 ` ian at airs dot com
5 siblings, 0 replies; 7+ 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=47158
Ian Lance Taylor <ian at airs dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
--- Comment #6 from Ian Lance Taylor <ian at airs dot com> 2011-01-05 05:34:56 UTC ---
Thanks for the patch. Committed.
I don't care all that much about space leaks in the Go frontend, and I don't
care at all about space leaks when generating an error. However, since you
took the time to put the patch together, I committed it. Thanks for sending
it.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-01-05 5:35 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-04 0:26 [Bug go/47158] New: [cppcheck][PATCH] found a memory leaks in gcc/gcc/go/gofrontend/gogo-tree.cc ettl.martin at gmx dot de
2011-01-04 1:48 ` [Bug go/47158] " ian at airs dot com
2011-01-04 10:54 ` ettl.martin at gmx dot de
2011-01-05 1:08 ` ian at airs dot com
2011-01-05 1:20 ` ettl.martin at gmx dot de
2011-01-05 5:34 ` 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).