Xiu Jianfeng 73de1befcc selinux: fix memleak in security_read_state_kernel()
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@huawei.com>
[PM: subject line tweak]
Signed-off-by: Paul Moore <paul@paul-moore.com>
2022-06-13 19:31:53 -04:00
..
2022-06-10 15:49:15 -04:00
2022-05-03 15:53:49 -04:00
2022-06-10 15:49:15 -04:00
2022-02-01 19:08:28 -05:00
2022-03-21 20:47:54 -07:00
2022-02-01 19:08:28 -05:00
2022-02-01 19:08:28 -05:00
2022-05-03 13:59:15 -04:00