]> 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)
commit33b177520e04f18b1e7af6b4ae191b02317c8312
treeb9c74d33841cf282b9d40c72fcce82b79062ed63
parent349d16b41ab2135e422b68997d9225af6ee099bd
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: f203e32a1fe5e ("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