[PATCH] smack: Fix a memory leak in smack_add_opt()

Al Viro viro at zeniv.linux.org.uk
Fri Dec 21 16:36:54 UTC 2018


On Fri, Dec 21, 2018 at 12:09:58PM +0300, Dan Carpenter wrote:
> The function is leaking "opts" on the error paths.
> 
> Fixes: 90e3b564ab93 ("smack: take the guts of smack_parse_opts_str() into a new helper")
> Signed-off-by: Dan Carpenter <dan.carpenter at oracle.com>

D'oh...  Applied, thanks for spotting that braino.



More information about the Linux-security-module-archive mailing list