Re: [PATCH][next] apparmor: fix memory leak on buffer on error exit path

2018-03-30 Thread John Johansen
On 03/27/2018 06:35 AM, Colin King wrote: > From: Colin Ian King > > 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:

Re: [PATCH][next] apparmor: fix memory leak on buffer on error exit path

2018-03-30 Thread John Johansen
On 03/27/2018 06:35 AM, Colin King wrote: > From: Colin Ian King > > 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

[PATCH][next] apparmor: fix memory leak on buffer on error exit path

2018-03-27 Thread Colin King
From: Colin Ian King 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

[PATCH][next] apparmor: fix memory leak on buffer on error exit path

2018-03-27 Thread Colin King
From: Colin Ian King 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")