aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/perf/util/hist.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
index 9438d576459d..514fc0470e38 100644
--- a/tools/perf/util/hist.c
+++ b/tools/perf/util/hist.c
@@ -374,6 +374,12 @@ static struct hist_entry *add_hist_entry(struct hists *hists,
374 if (!cmp) { 374 if (!cmp) {
375 he_stat__add_period(&he->stat, period, weight); 375 he_stat__add_period(&he->stat, period, weight);
376 376
377 /*
378 * This mem info was allocated from machine__resolve_mem
379 * and will not be used anymore.
380 */
381 free(entry->mem_info);
382
377 /* If the map of an existing hist_entry has 383 /* If the map of an existing hist_entry has
378 * become out-of-date due to an exec() or 384 * become out-of-date due to an exec() or
379 * similar, update it. Otherwise we will 385 * similar, update it. Otherwise we will