Skip to content
Commit 6e51f9cb authored by Namhyung Kim's avatar Namhyung Kim Committed by Paul Moore
Browse files

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: default avatarNamhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarPaul Moore <pmoore@redhat.com>
parent f004afe6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment