perf sort: Fix a memory leak on srcline
authorNamhyung Kim <namhyung.kim@lge.com>
Wed, 11 Sep 2013 05:09:25 +0000 (14:09 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 9 Oct 2013 18:58:07 +0000 (15:58 -0300)
commit963ba5fd5d04f36d6a5c9a94562484a4f270c1de
tree7970c09c4fb24df64764776a7223d39aaeac5554
parentfc67297b16da335d610af2fac96233d51146300a
perf sort: Fix a memory leak on srcline

In the hist_entry__srcline_snprintf(), path and self->srcline are
pointing the same memory region, but they are doubly allocated.

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-2-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/sort.c