diff options
| author | Mark Brown <broonie@kernel.org> | 2026-07-27 14:21:32 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-07-27 14:21:32 +0100 |
| commit | b4f34ee84c4126930dfd2b78cc5d226fcbe92068 (patch) | |
| tree | ce96cb4e5354448481f7d722a443bf534fbeb3dd /tools/testing | |
| parent | b40c2bd6b399838fa7537a2b4241832a1d44f042 (diff) | |
| parent | 0cee720cfd51402cfcb14d96cb326a36c13b823a (diff) | |
| download | linux-next-b4f34ee84c4126930dfd2b78cc5d226fcbe92068.tar.gz linux-next-b4f34ee84c4126930dfd2b78cc5d226fcbe92068.zip | |
Merge branch 'next' of https://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/lsm.git
Diffstat (limited to 'tools/testing')
| -rw-r--r-- | tools/testing/selftests/lsm/common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/testing/selftests/lsm/common.c b/tools/testing/selftests/lsm/common.c index 9ad258912646..927dce4f04cb 100644 --- a/tools/testing/selftests/lsm/common.c +++ b/tools/testing/selftests/lsm/common.c @@ -76,7 +76,7 @@ int attr_lsm_count(void) return 0; if (read_sysfs_lsms(names, sysconf(_SC_PAGESIZE))) - return 0; + goto out; if (strstr(names, "selinux")) count++; @@ -85,5 +85,7 @@ int attr_lsm_count(void) if (strstr(names, "apparmor")) count++; +out: + free(names); return count; } |
