[apparmor] [PATCH][NEXT] apparmor: Fix memory leak of rule on error exit path

2018-05-17 Thread Tyler Hicks
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

Re: [apparmor] [PATCH][NEXT] apparmor: Fix memory leak of rule on error exit path

2018-05-17 Thread John Johansen
On 05/17/2018 12:53 PM, Tyler Hicks wrote: > 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