From: Tobias Burnus <burnus@net-b.de>
To: gcc patches <gcc-patches@gcc.gnu.org>, gfortran <fortran@gcc.gnu.org>
Subject: [Patch, Fortran, committed] Fix memleak in generate_component_assignments
Date: Wed, 05 Dec 2012 15:46:00 -0000 [thread overview]
Message-ID: <50BF6C2C.7090509@net-b.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 95 bytes --]
Found by Coverity's scanner.
Committed as Rev. 194225 after building with the patch.
Tobias
[-- Attachment #2: committed.diff --]
[-- Type: text/x-patch, Size: 789 bytes --]
Index: ChangeLog
===================================================================
--- ChangeLog (Revision 194224)
+++ ChangeLog (Arbeitskopie)
@@ -1,3 +1,7 @@
+2012-12-05 Tobias Burnus <burnus@net-b.de>
+
+ * resolve.c (generate_component_assignments): Fix memleak.
+
2012-12-03 Janus Weil <janus@gcc.gnu.org>
PR fortran/55548
Index: resolve.c
===================================================================
--- resolve.c (Revision 194224)
+++ resolve.c (Arbeitskopie)
@@ -9857,7 +9857,6 @@ generate_component_assignments (gfc_code **code, g
continue;
/* Make an assigment for this component. */
- this_code = gfc_get_code ();
this_code = build_assignment (EXEC_ASSIGN,
(*code)->expr1, (*code)->expr2,
comp1, comp2, (*code)->loc);
reply other threads:[~2012-12-05 15:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50BF6C2C.7090509@net-b.de \
--to=burnus@net-b.de \
--cc=fortran@gcc.gnu.org \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).