summaryrefslogtreecommitdiff
path: root/gcc/profile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/profile.c')
-rw-r--r--gcc/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/profile.c b/gcc/profile.c
index 4e2213a6e2d..9b493095684 100644
--- a/gcc/profile.c
+++ b/gcc/profile.c
@@ -220,7 +220,6 @@ instrument_values (histogram_values values)
gcc_unreachable ();
}
}
- VEC_free (histogram_value, heap, values);
}
@@ -1049,6 +1048,7 @@ branch_prob (void)
free_aux_for_edges ();
+ VEC_free (histogram_value, heap, values);
free_edge_list (el);
if (flag_branch_probabilities)
profile_status = PROFILE_READ;