From: Tomasz Stanislawski Date: Thu, 6 Jun 2013 07:30:50 +0000 (+0200) Subject: security: smack: fix memleak in smk_write_rules_list() X-Git-Tag: v3.12-rc1~107^2^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=470043ba995a79a274a5db306856975002a06f19;p=pandora-kernel.git 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 --- Reading git-diff-tree failed