]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1dec57a148aa302ebf135158883230ae91fa76df
treeb5d8fcd87bb7aae5f046a06b19874d7996c23a53
parent648a8f554daeb1a78825e122ae20f1dd4b1930f7
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