Tyler Hicks 52e8c38001 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>
2018-06-07 01:50:48 -07:00
..
2018-04-13 15:38:53 -07:00
2017-04-07 08:58:35 +10:00
2018-05-03 00:47:56 -07:00
2018-02-09 11:30:01 -08:00
2018-05-03 00:49:35 -07:00
2018-05-03 00:49:56 -07:00
2018-05-03 00:50:12 -07:00
2018-05-03 00:50:30 -07:00
2018-02-09 11:30:01 -08:00
2018-05-03 00:50:46 -07:00
2018-02-09 11:30:01 -08:00
2018-02-09 11:30:01 -08:00