Re: [PATCH] netfilter: nf_tables: fix memory leak on error exit return

From: Pablo Neira Ayuso
Date: Wed May 09 2018 - 08:32:13 EST


On Wed, May 09, 2018 at 01:22:56PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Currently the -EBUSY error return path is not free'ing resources
> allocated earlier, leaving a memory leak. Fix this by exiting via the
> error exit label err5 that performs the necessary resource clean
> up.
>
> Detected by CoverityScan, CID#1432975 ("Resource leak")

Applied, thanks.