perf c2c: Fix memory leak in build_cl_output()
authorYunfeng Ye <yeyunfeng@huawei.com>
Tue, 15 Oct 2019 02:54:14 +0000 (10:54 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Oct 2019 15:08:13 +0000 (12:08 -0300)
commitae199c580da1754a2b051321eeb76d6dacd8707b
treeb5d8fcd87bb7aae5f046a06b19874d7996c23a53
parent5a0baf5123236362fda4e9772cc63b7faa16a0df
perf c2c: Fix memory leak in build_cl_output()

There is a memory leak problem in the failure paths of
build_cl_output(), so fix it.

Signed-off-by: Yunfeng Ye <yeyunfeng@huawei.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Feilong Lin <linfeilong@huawei.com>
Cc: Hu Shiyuan <hushiyuan@huawei.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lore.kernel.org/lkml/4d3c0178-5482-c313-98e1-f82090d2d456@huawei.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-c2c.c