diff options
author | Namhyung Kim <[email protected]> | 2017-10-31 11:06:53 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2017-11-01 11:43:56 -0300 |
commit | b7b75a60b291cc699ca9bb2a8517a1b3b08bbeb1 (patch) | |
tree | ce1473a3d4e86e261e457eb05a36647d88f50686 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | 1de3038d0082a1c2edd7a7b1b3381e38f42af0e7 (diff) |
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 <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Milian Wolff <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions