diff options
author | Namhyung Kim <namhyung@kernel.org> | 2017-06-08 16:31:06 +0900 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-06-08 15:39:13 -0300 |
commit | 8ba29adf9a7cdff3c7283d5fc0dcf5e777d3b40f (patch) | |
tree | 8dc403b78aff477be820b9222d103ac1f37d0249 /tools/perf/tests/code-reading.c | |
parent | 1d6b3c9ba756a5134fd7ad1959acac776d17404b (diff) | |
download | linux-8ba29adf9a7cdff3c7283d5fc0dcf5e777d3b40f.tar.bz2 |
perf tools: Consolidate error path in __open_dso()
On failure, it should free the 'name', so clean up the error path using
goto.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Suggested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Wang Nan <wangnan0@huawei.com>
Cc: kernel-team@lge.com
Link: http://lkml.kernel.org/r/20170608073109.30699-7-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests/code-reading.c')
0 files changed, 0 insertions, 0 deletions