summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorNamhyung Kim <namhyung@kernel.org>2017-10-31 11:06:53 +0900
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-11-01 11:43:56 -0300
commitb7b75a60b291cc699ca9bb2a8517a1b3b08bbeb1 (patch)
treece1473a3d4e86e261e457eb05a36647d88f50686 /init
parent1de3038d0082a1c2edd7a7b1b3381e38f42af0e7 (diff)
downloadlinux-b7b75a60b291cc699ca9bb2a8517a1b3b08bbeb1.tar.gz
linux-b7b75a60b291cc699ca9bb2a8517a1b3b08bbeb1.tar.bz2
linux-b7b75a60b291cc699ca9bb2a8517a1b3b08bbeb1.zip
perf srcline: Fix memory leak in addr2inlines()
When libbfd is not used, addr2inlines() executes `addr2line -i` and process output line by line. But it resets filename to NULL in the loop so getline() allocates additional memory everytime instead of realloc. Signed-off-by: Namhyung Kim <namhyung@kernel.org> Acked-by: Jiri Olsa <jolsa@kernel.org> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Milian Wolff <milian.wolff@kdab.com> Cc: Peter Zijlstra <peterz@infradead.org> Cc: kernel-team@lge.com Link: http://lkml.kernel.org/r/20171031020654.31163-1-namhyung@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions