summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorSasha Levin <sashal@kernel.org>2026-10-11 18:33:38 -0400
committerTejun Heo <tj@kernel.org>2026-10-12 07:52:14 -1000
commit316b06ccee04ad871f6233ad7a3884b0ea457360 (patch)
treeb3a66e0cf9524b68803f6b9b680d91945dc4c048 /tools/lib/python/kdoc/python_version.py
parent61c77b323c8da2ba6a35a4e50019e5f31f8729b8 (diff)
downloadlinux-next-316b06ccee04ad871f6233ad7a3884b0ea457360.tar.gz
linux-next-316b06ccee04ad871f6233ad7a3884b0ea457360.zip
selftests/cgroup: Free the paths returned by cg_control()
cg_control() returns a path allocated with malloc(). The two callers that pass it straight to inotify_add_watch() never free it, and pass NULL to it if the allocation fails. Keep the path in a local variable, check it, and free it when done. Assisted-by: LLM Signed-off-by: Sasha Levin <sashal@kernel.org> Acked-by: Michal Koutný <mkoutny@suse.com> Reviewed-by: T.J. Mercier <tjmercier@google.com> Acked-by: Shakeel Butt <shakeel.butt@linux.dev> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions