aboutsummaryrefslogtreecommitdiffstats
path: root/security/selinux/netnode.c
diff options
context:
space:
mode:
authorNamhyung Kim <[email protected]>2014-06-14 16:19:02 +0000
committerPaul Moore <[email protected]>2014-06-19 18:56:59 +0000
commit6e51f9cbfa04a92b40e7f9c1e76c8ecbff534a22 (patch)
tree1fb97b53d5b40ceb9df33f43743ca232332d794f /security/selinux/netnode.c
parentselinux: simple cleanup for cond_read_node() (diff)
downloadkernel-6e51f9cbfa04a92b40e7f9c1e76c8ecbff534a22.tar.gz
kernel-6e51f9cbfa04a92b40e7f9c1e76c8ecbff534a22.zip
selinux: fix a possible memory leak in cond_read_node()
The cond_read_node() should free the given node on error path as it's not linked to p->cond_list yet. This is done via cond_node_destroy() but it's not called when next_entry() fails before the expr loop. Signed-off-by: Namhyung Kim <[email protected]> Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/netnode.c')
0 files changed, 0 insertions, 0 deletions