summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorTyler Hicks <tyhicks@canonical.com>2018-05-17 22:53:45 +0300
committerJohn Johansen <john.johansen@canonical.com>2018-06-07 11:50:48 +0300
commit52e8c38001d8ef0ca07ef428e480cd4a35e46abf (patch)
tree4673085ceb722e48303b63e0631473aa948621a2 /firmware
parent2ab47dae54d567bbb1ad3e96e5b2601cc13f4d2b (diff)
downloadlinux-52e8c38001d8ef0ca07ef428e480cd4a35e46abf.tar.xz
apparmor: Fix memory leak of rule on error exit path
Currently on the error exit path the allocated rule is not free'd causing a memory leak. Fix this by calling aa_audit_rule_free(). Detected by CoverityScan, CID#1468966 ("Resource leaks") Fixes: cb740f574c7b ("apparmor: modify audit rule support to support profile stacks") Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions