diff options
Diffstat (limited to 'tools/perf/builtin-annotate.c')
-rw-r--r-- | tools/perf/builtin-annotate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/builtin-annotate.c b/tools/perf/builtin-annotate.c index 2c1bec39c30e..a32a64ef08e2 100644 --- a/tools/perf/builtin-annotate.c +++ b/tools/perf/builtin-annotate.c | |||
@@ -187,6 +187,7 @@ find_next: | |||
187 | * symbol, free he->ms.sym->src to signal we already | 187 | * symbol, free he->ms.sym->src to signal we already |
188 | * processed this symbol. | 188 | * processed this symbol. |
189 | */ | 189 | */ |
190 | zfree(¬es->src->cycles_hist); | ||
190 | zfree(¬es->src); | 191 | zfree(¬es->src); |
191 | } | 192 | } |
192 | } | 193 | } |
@@ -238,6 +239,8 @@ static int __cmd_annotate(struct perf_annotate *ann) | |||
238 | if (nr_samples > 0) { | 239 | if (nr_samples > 0) { |
239 | total_nr_samples += nr_samples; | 240 | total_nr_samples += nr_samples; |
240 | hists__collapse_resort(hists, NULL); | 241 | hists__collapse_resort(hists, NULL); |
242 | /* Don't sort callchain */ | ||
243 | perf_evsel__reset_sample_bit(pos, CALLCHAIN); | ||
241 | hists__output_resort(hists, NULL); | 244 | hists__output_resort(hists, NULL); |
242 | 245 | ||
243 | if (symbol_conf.event_group && | 246 | if (symbol_conf.event_group && |