perf probe: Close target file on error path
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 26 Apr 2016 06:47:37 +0000 (15:47 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 26 Apr 2016 13:56:08 +0000 (10:56 -0300)
commit062d6c2aec0e087be956494a73221c04eca115fe
tree0f53396a11bb4c4aff693ee66ba32475f888b7e1
parentb04b7023751bf6519eee64467b6477f0e7fb82a1
perf probe: Close target file on error path

Fix a bug to close target elf file in get_text_start_address().

Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20160426064737.1443.44093.stgit@devbox
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/probe-event.c