public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [COMMITTED] Fortran -- fix memory leak in array transformations.
@ 2011-10-24  0:58 Steve Kargl
  0 siblings, 0 replies; only message in thread
From: Steve Kargl @ 2011-10-24  0:58 UTC (permalink / raw)
  To: fortran, gcc-patches

2011-10-23  Steven G. Kargl  <kargl@gcc.gnu.org>

    * simplify.c (simplify_transformation_to_array): Fix memory leak. 

Index: simplify.c
===================================================================
--- simplify.c	(revision 180352)
+++ simplify.c	(working copy)
@@ -516,6 +516,7 @@ simplify_transformation_to_array (gfc_ex
      linked-list traversal. Masked elements are set to NULL.  */
   gfc_array_size (array, &size);
   arraysize = mpz_get_ui (size);
+  mpz_clear (size);
 
   arrayvec = XCNEWVEC (gfc_expr*, arraysize);
 
-- 
Steve

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-23 22:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-24  0:58 [COMMITTED] Fortran -- fix memory leak in array transformations Steve Kargl

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).