* [Patch, Fortran, committed] Fix memleak in generate_component_assignments
@ 2012-12-05 15:46 Tobias Burnus
0 siblings, 0 replies; only message in thread
From: Tobias Burnus @ 2012-12-05 15:46 UTC (permalink / raw)
To: gcc patches, gfortran
[-- 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-12-05 15:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-12-05 15:46 [Patch, Fortran, committed] Fix memleak in generate_component_assignments Tobias Burnus
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).