summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/cacheline.c
diff options
context:
space:
mode:
authorRiccardo Mancini <rickyman7@gmail.com>2021-07-15 18:07:25 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2021-07-18 14:27:37 +0200
commite0fa7ab42232e742dcb3de9f3c1f6127b5adc019 (patch)
treedda7efc0b5ccffc5d1e52b9b9fca0057f2708868 /tools/perf/util/cacheline.c
parentperf test bpf: Free obj_buf (diff)
downloadlinux-e0fa7ab42232e742dcb3de9f3c1f6127b5adc019.tar.xz
linux-e0fa7ab42232e742dcb3de9f3c1f6127b5adc019.zip
perf probe-file: Delete namelist in del_events() on the error path
ASan reports some memory leaks when running: # perf test "42: BPF filter" This second leak is caused by a strlist not being dellocated on error inside probe_file__del_events. This patch adds a goto label before the deallocation and makes the error path jump to it. Signed-off-by: Riccardo Mancini <rickyman7@gmail.com> Fixes: e7895e422e4da63d ("perf probe: Split del_perf_probe_events()") Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@redhat.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/174963c587ae77fa108af794669998e4ae558338.1626343282.git.rickyman7@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/cacheline.c')
0 files changed, 0 insertions, 0 deletions