diff options
author | Tomasz Stanislawski <t.stanislaws@samsung.com> | 2013-06-06 09:30:50 +0200 |
---|---|---|
committer | Casey Schaufler <casey@schaufler-ca.com> | 2013-08-01 21:57:24 +0200 |
commit | 470043ba995a79a274a5db306856975002a06f19 (patch) | |
tree | 4c10363d8e9d4d8e8d8f33fa00fce7632ead3b17 /security/smack/smack_lsm.c | |
parent | Merge branch 'linus-master'; commit 'v3.11-rc2' into ra-next (diff) | |
download | linux-470043ba995a79a274a5db306856975002a06f19.tar.xz linux-470043ba995a79a274a5db306856975002a06f19.zip |
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: Tomasz Stanislawski <t.stanislaws@samsung.com>
Diffstat (limited to 'security/smack/smack_lsm.c')
0 files changed, 0 insertions, 0 deletions