WSL2-Linux-Kernel/samples
Tom Rix 20fbf100f8 samples/landlock: Fix path_list memory leak
commit 66b513b7c6 upstream.

Clang static analysis reports this error

sandboxer.c:134:8: warning: Potential leak of memory
  pointed to by 'path_list'
        ret = 0;
              ^
path_list is allocated in parse_path() but never freed.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20210428213852.2874324-1-trix@redhat.com
Cc: stable@vger.kernel.org
Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-08 14:22:59 +02:00
..
acrn
auxdisplay
binderfs
bpf samples: bpf: Fix 'unknown warning group' build warning on Clang 2022-01-27 11:03:29 +01:00
configfs
connector
ftrace ftrace/samples: Add missing prototypes direct functions 2022-01-11 15:35:13 +01:00
hidraw
hw_breakpoint
kdb kdb: Rename members of struct kdbtab_t 2021-07-27 17:05:06 +01:00
kfifo
kmemleak
kobject
kprobes samples/kretprobes: Fix return value if register_kretprobe() failed 2021-11-18 19:16:42 +01:00
landlock samples/landlock: Fix path_list memory leak 2022-04-08 14:22:59 +02:00
livepatch
mei samples: mei: don't wait on read completion upon write. 2021-08-01 09:54:22 +02:00
nitro_enclaves
pidfd
pktgen samples: pktgen: add trap SIGINT for printing execution result 2021-08-25 13:44:30 +01:00
qmi
rpmsg
seccomp
timers
trace_events tracing: Add trace_event helper macros __string_len() and __assign_str_len() 2021-08-17 11:47:52 -04:00
trace_printk
uhid
v4l
vfio-mdev vfio/mbochs: Fix close when multiple device FDs are open 2021-08-11 09:50:11 -06:00
vfs
watch_queue
watchdog
Kconfig
Makefile