Free sccs field
authorRevital Eres <revital.eres@linaro.org>
Sun, 17 Apr 2011 07:41:33 +0000 (07:41 +0000)
committerRevital Eres <revitale@gcc.gnu.org>
Sun, 17 Apr 2011 07:41:33 +0000 (07:41 +0000)
From-SVN: r172607

gcc/ChangeLog
gcc/ddg.c

index 76448283a3e30de385896332950d16dae1b19428..444ddb1c3e62fc83acda89e5a7e3f18dd77e6354 100644 (file)
@@ -1,3 +1,7 @@
+2011-04-17  Revital Eres  <revital.eres@linaro.org>
+
+       * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
+
 2011-04-17  Revital Eres  <revital.eres@linaro.org>
 
        * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
index 07dcde02d261e8aa87177ea6620a264d4007b9c7..4543ba7d170bf142b6ea23a80abd665f46edaa99 100644 (file)
--- a/gcc/ddg.c
+++ b/gcc/ddg.c
@@ -1011,6 +1011,7 @@ free_ddg_all_sccs (ddg_all_sccs_ptr all_sccs)
   for (i = 0; i < all_sccs->num_sccs; i++)
     free_scc (all_sccs->sccs[i]);
 
+  free (all_sccs->sccs);
   free (all_sccs);
 }