diff options
author | Yang Jihong <yangjihong1@huawei.com> | 2024-02-06 08:32:25 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-17 15:24:12 +0200 |
commit | e649fb7f8361ce23f4302231e14d0792ca7619a6 (patch) | |
tree | fe9833597b5c041bbbb4d6d1dfaa0967b6a93b3f /tools/lib/subcmd/parse-options.c | |
parent | 85ca3d45bd402b1b252e17b34ca0052d2a523cd3 (diff) |
perf sched: Fix memory leak in perf_sched__map()
[ Upstream commit ef76a5af819743d405674f6de5d0e63320ac653e ]
perf_sched__map() needs to free memory of map_cpus, color_pids and
color_cpus in normal path and rollback allocated memory in error path.
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240206083228.172607-3-yangjihong1@huawei.com
Stable-dep-of: 1a5efc9e13f3 ("libsubcmd: Don't free the usage string")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/lib/subcmd/parse-options.c')
0 files changed, 0 insertions, 0 deletions