]> git.baikalelectronics.ru Git - kernel.git/commit
perf annotate: Reuse path from the result of addr2line
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 11 Sep 2013 05:09:26 +0000 (14:09 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Oct 2013 18:58:20 +0000 (15:58 -0300)
commit94c6d87232618d7397a4285d58850649a0732ca0
tree341ee9887bc5a739ca4ccf22c599dfd93c03c214
parent011af6e0b9fdc68e91c24bb605fe5be8c44ba2d8
perf annotate: Reuse path from the result of addr2line

In the symbol__get_source_line(), path and src_line->path will have same
value, but they were allocated separately, and leaks one.  Just share
path to src_line->path.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Reviewed-by: Jiri Olsa <jolsa@redhat.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1378876173-13363-3-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/annotate.c