Skip to content
Commit 470043ba authored by Tomasz Stanislawski's avatar Tomasz Stanislawski Committed by Casey Schaufler
Browse files

security: smack: fix memleak in smk_write_rules_list()



The smack_parsed_rule structure is allocated.  If a rule is successfully
installed then the last reference to the object is lost.  This patch fixes this
leak. Moreover smack_parsed_rule is allocated on stack because it no longer
needed ofter smk_write_rules_list() is finished.

Signed-off-by: default avatarTomasz Stanislawski <t.stanislaws@samsung.com>
parent be0306bc
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