diff options
| author | 2026-10-11 18:33:38 -0400 | |
|---|---|---|
| committer | 2026-10-12 07:52:14 -1000 | |
| commit | 316b06ccee04ad871f6233ad7a3884b0ea457360 (patch) | |
| tree | b3a66e0cf9524b68803f6b9b680d91945dc4c048 /scripts/Makefile.thinlto | |
| parent | selftests: memcg: Don't close an uninitialized fd (diff) | |
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 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
