commit | 588558eb6d0e0b6edfa65a67e906c2ffeba63ff1 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Tue Mar 27 14:35:58 2018 +0100 |
committer | John Johansen <john.johansen@canonical.com> | Fri Mar 30 21:14:04 2018 -0700 |
tree | ce7b8c97b9af43136d47cadf3ee9350436c9b8e3 | |
parent | 1180b4c757aab5506f1be367000364dd5cf5cd02 [diff] |
apparmor: fix memory leak on buffer on error exit path Currently on the error exit path the allocated buffer is not free'd causing a memory leak. Fix this by kfree'ing it. Detected by CoverityScan, CID#1466876 ("Resource leaks") Fixes: 1180b4c757aa ("apparmor: fix dangling symlinks to policy rawdata after replacement") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: John Johansen <john.johansen@canonical.com>