diff options
| author | Sasha Levin <sashal@kernel.org> | 2026-10-11 18:33:38 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2026-10-12 07:52:14 -1000 |
| commit | 316b06ccee04ad871f6233ad7a3884b0ea457360 (patch) | |
| tree | b3a66e0cf9524b68803f6b9b680d91945dc4c048 /tools/lib/python/kdoc/python_version.py | |
| parent | 61c77b323c8da2ba6a35a4e50019e5f31f8729b8 (diff) | |
| download | linux-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
