]> git.baikalelectronics.ru Git - kernel.git/commit
perf test: Fix memory leaks in parse-metric test
authorNamhyung Kim <namhyung@kernel.org>
Tue, 15 Sep 2020 03:18:14 +0000 (12:18 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Sep 2020 12:20:11 +0000 (09:20 -0300)
commitb868194e12b8877232dd1aff350809c3c45fafd2
treeb9c74d33841cf282b9d40c72fcce82b79062ed63
parent4d71fe12c9b724a64fd098c3643e3abfd23345bf
perf test: Fix memory leaks in parse-metric test

It didn't release resources when there's an error so the
test_recursion_fail() will leak some memory.

Fixes: 420f14608c4c8 ("perf tests: Add parse metric test for ipc metric")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20200915031819.386559-7-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/parse-metric.c