Home
last modified time | relevance | path

Searched hist:"66 b513b7" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/samples/landlock/
H A Dsandboxer.c66b513b7 Wed Apr 28 16:38:52 CDT 2021 Tom Rix <trix@redhat.com> samples/landlock: Fix path_list memory leak

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>