Plug memory leak I introduced in df_compact_blocks

Submitted by Jan Hubicka on June 16, 2010, 3:56 p.m.


Message ID
State New
Headers show

Commit Message

Jan Hubicka June 16, 2010, 3:56 p.m.
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.


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

Patch hide | download patch | download mbox

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