diff mbox

Plug memory leak I introduced in df_compact_blocks

Message ID 20100616155658.GB17142@kam.mff.cuni.cz
State New
Headers show

Commit Message

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

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