diff options
author | Yang Jihong <[email protected]> | 2023-04-21 02:59:53 +0000 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2023-05-02 08:36:14 -0300 |
commit | 9b86c49710eec7b4fbb78a0232b2dd0972a2b576 (patch) | |
tree | 68352a94ea39157dd7648f90732e2556a044daef /lib/mpi/mpi-mul.c | |
parent | 6bf86cada3eb8ec3eb80cdce5280e7a22dac8b01 (diff) |
perf tracepoint: Fix memory leak in is_valid_tracepoint()
When is_valid_tracepoint() returns 1, need to call put_events_file() to
free `dir_path`.
Fixes: 25a7d914274de386 ("perf parse-events: Use get/put_events_file()")
Signed-off-by: Yang Jihong <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Ian Rogers <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions