perf probe: Fix get_real_path to free allocated memory in error path
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 26 Feb 2015 08:25:04 +0000 (17:25 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 26 Feb 2015 14:59:05 +0000 (11:59 -0300)
commiteb47cb2eb22dfacac9689708f5bd3cb0e975e290
treec44d9dfc967fb2eef639a529ce74dffb1f3da27f
parent9aaf5a5f479bd68699f2e6f6e5e5f1253377b6da
perf probe: Fix get_real_path to free allocated memory in error path

Fix get_real_path to free allocated memory when comp_dir is used for
complementing path and getting an error.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Naohiro Aota <naota@elisp.net>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20150226082504.28125.74506.stgit@localhost.localdomain
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c