Patchwork Plug memory leak I introduced in df_compact_blocks

login
register
mail settings
Submitter Jan Hubicka
Date June 16, 2010, 3:56 p.m.
Message ID <20100616155658.GB17142@kam.mff.cuni.cz>
Download mbox | patch
Permalink /patch/55904/
State New
Headers show

Comments

Jan Hubicka - June 16, 2010, 3:56 p.m.
Hi,
I am testing the following and will commit it as obvious.
That reordering loop gave me some hard time since it used to try to handle
"orphane" blocks that did not exist.  I removed the code in one of
last incarnations of the patch that lead me to remove the free too.

Honza

	* df-core.c (df_compact_blocks): Free problem_temps vector.

Patch

--- df-core.c	(revision 160678)
+++ df-core.c	(working copy)
@@ -1489,6 +1547,7 @@  df_compact_blocks (void)
 		  + i * dflow->problem->block_info_elt_size, 0,
 		  (last_basic_block - i)
 		  * dflow->problem->block_info_elt_size);
+	  free (problem_temps);
 	}
     }