diff options
author | Ian Rogers <irogers@google.com> | 2021-11-07 09:54:44 +0100 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2021-11-07 16:44:53 +0100 |
commit | e4e290791d87b95b2b1fa991e504fba89cbe2a03 (patch) | |
tree | bc776ad604f8cd3c5cf14cec89425d0429c5fb26 /tools/perf/tests | |
parent | perf tools: Use __BYTE_ORDER__ (diff) | |
download | linux-e4e290791d87b95b2b1fa991e504fba89cbe2a03.tar.xz linux-e4e290791d87b95b2b1fa991e504fba89cbe2a03.zip |
perf stat: Fix memory leak on error path
strdup() is used to deduplicate, ensure it isn't leaking an already
created string by freeing first.
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: John Garry <john.garry@huawei.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20211107085444.3781604-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/tests')
0 files changed, 0 insertions, 0 deletions