perf test: Fix memory leaks on event-times error paths
authorIan Rogers <irogers@google.com>
Tue, 1 Oct 2024 05:23:25 +0000 (22:23 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 2 Oct 2024 21:58:03 +0000 (14:58 -0700)
commit1334ee91694c21777d2df1da20bc5d5a7022a1e5
tree59e3a21fe1be9336adefecad0e2775d46867e74c
parent7f6ccb70e465bd8c9cf8973aee1c01224e4bdb3c
perf test: Fix memory leaks on event-times error paths

These error paths occur without sufficient permissions. Fix the memory
leaks to make leak sanitizer happier.

Signed-off-by: Ian Rogers <irogers@google.com>
Link: https://lore.kernel.org/r/20241001052327.7052-3-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/event-times.c