Re: [PATCH v5 11/15] perf tools report: Implement browsing of individual samples
From: Jiri Olsa
Date: Mon Mar 11 2019 - 08:32:32 EST
On Fri, Mar 08, 2019 at 09:56:24PM -0800, Andi Kleen wrote:
SNIP
> diff --git a/tools/perf/util/hist.c b/tools/perf/util/hist.c
> index 08e2b3be4c1b..da3a944f42aa 100644
> --- a/tools/perf/util/hist.c
> +++ b/tools/perf/util/hist.c
> @@ -445,6 +445,14 @@ static int hist_entry__init(struct hist_entry *he,
> return -ENOMEM;
> }
> }
> +
> + if (symbol_conf.res_sample) {
> + he->res_samples = calloc(sizeof(struct res_sample),
> + symbol_conf.res_sample);
> + if (!he->res_samples)
you need to free the memory in here, anyway this function
just changed, so please rebase on latest Arnaldo's perf/core
jirka
> + return -ENOMEM;
> + }
> +
SNIP