diff options
author | 2024-07-31 16:55:01 -0700 | |
---|---|---|
committer | 2024-08-01 18:55:55 -0300 | |
commit | 3da209bb1177462b6fe8e3021a5527a5a49a9336 (patch) | |
tree | 1ce719c1d6384f67938acc904a1fdde6ebc9b4e9 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | perf hist: Correct hist_entry->mem_info refcounts (diff) | |
download | wireguard-linux-3da209bb1177462b6fe8e3021a5527a5a49a9336.tar.xz wireguard-linux-3da209bb1177462b6fe8e3021a5527a5a49a9336.zip |
perf mem: Free the allocated sort string, fixing a leak
The get_sort_order() returns either a new string (from strdup) or NULL
but it never gets freed.
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Fixes: 2e7f545096f954a9 ("perf mem: Factor out a function to generate sort order")
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: https://lore.kernel.org/r/20240731235505.710436-3-namhyung@kernel.org
[ Added Fixes tag ]
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions