aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-script.c
diff options
context:
space:
mode:
authorJiri Olsa <[email protected]>2019-03-05 15:25:31 +0000
committerArnaldo Carvalho de Melo <[email protected]>2019-03-06 21:16:57 +0000
commit2634958586368dcbf09c0d2a17dee02d1fc53e0d (patch)
treeeb771c6bf14c2853eb43a5aa936d3aa1121da4a6 /tools/perf/builtin-script.c
parentperf hist: Add error path into hist_entry__init (diff)
downloadkernel-2634958586368dcbf09c0d2a17dee02d1fc53e0d.tar.gz
kernel-2634958586368dcbf09c0d2a17dee02d1fc53e0d.zip
perf hist: Fix memory leak of srcline
We can't allocate he->srcline unconditionaly, only when new hist_entry is created. Moving he->srcline allocation into hist_entry__init function. Original-patch-by: Jonas Rabenstein <[email protected]> Suggested-by: Namhyung Kim <[email protected]> Signed-off-by: Jiri Olsa <[email protected]> Cc: Alexander Shishkin <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Nageswara R Sastry <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Ravi Bangoria <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/builtin-script.c')
0 files changed, 0 insertions, 0 deletions