On Mon, Jun 13, 2022 at 10:01 AM Xiu Jianfeng <xiujianfeng@xxxxxxxxxx> wrote: > > In this function, it directly returns the result of __security_read_policy > without freeing the allocated memory in *data, cause memory leak issue, > so free the memory if __security_read_policy failed. > > Signed-off-by: Xiu Jianfeng <xiujianfeng@xxxxxxxxxx> > --- > security/selinux/ss/services.c | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) Merged into selinux/next, thanks. -- paul-moore.com