mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
The calloc-allocated buffer in attr_lsm_count() is never released on
any exit path, including both the normal return path and the early
return when read_sysfs_lsms fails, resulting in a heap memory leak.
Add free() for the buffer on all return branches to fix the leak.
Fixes:
|
||
|---|---|---|
| .. | ||
| .gitignore | ||
| common.c | ||
| common.h | ||
| config | ||
| lsm_get_self_attr_test.c | ||
| lsm_list_modules_test.c | ||
| lsm_set_self_attr_test.c | ||
| Makefile | ||