]> git.itanic.dy.fi Git - linux-stable/commit
perf thread_map: Free strlist on normal path in thread_map__new_by_tid_str()
authorYang Jihong <yangjihong1@huawei.com>
Tue, 6 Feb 2024 08:32:28 +0000 (08:32 +0000)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:22:20 +0000 (18:22 -0400)
commit9df9108a9144dfbcab980359078dee8022dc9546
treeef68f2c6eca65d554fc36cbbfcf6556c031da1a5
parent79ab81939318d69dbf0524f00e1e45d97ecd0ed1
perf thread_map: Free strlist on normal path in thread_map__new_by_tid_str()

[ Upstream commit 1eb3d924e3c0b8c27388b0583a989d757866efb6 ]

slist needs to be freed in both error path and normal path in
thread_map__new_by_tid_str().

Fixes: b52956c961be3a04 ("perf tools: Allow multiple threads or processes in record, stat, top")
Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Yang Jihong <yangjihong1@huawei.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Link: https://lore.kernel.org/r/20240206083228.172607-6-yangjihong1@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/perf/util/thread_map.c