summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2022-03-27 14:26:47 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2022-03-27 14:26:47 -0700
commit29cbaa3e60dfe48e341a3a5ce1c2d8f3d9e9667c (patch)
tree313f2b5436ced50e76a706d0edd41386305db75d /samples
parent50d602d81f35621042fa0cdae25808662caffda8 (diff)
parentaea0b9f2486da8497f35c7114b764bf55e17c7ea (diff)
downloadlinux-29cbaa3e60dfe48e341a3a5ce1c2d8f3d9e9667c.tar.bz2
Merge tag 'landlock-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux
Pull landlock updates from Mickaël Salaün: "These two commits contain a minor fix for the sandboxer sample, and a Landlock ruleset FD name standardization" * tag 'landlock-5.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/mic/linux: landlock: Use square brackets around "landlock-ruleset" samples/landlock: Fix path_list memory leak
Diffstat (limited to 'samples')
-rw-r--r--samples/landlock/sandboxer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/samples/landlock/sandboxer.c b/samples/landlock/sandboxer.c
index 7a15910d2171..8859fc193542 100644
--- a/samples/landlock/sandboxer.c
+++ b/samples/landlock/sandboxer.c
@@ -134,6 +134,7 @@ static int populate_ruleset(
ret = 0;
out_free_name:
+ free(path_list);
free(env_path_name);
return ret;
}