Re: [PATCH] calipso: fix resource leak on calipso_genopt failure

From: David Miller
Date: Sun Aug 14 2016 - 05:43:30 EST


From: Colin King <colin.king@xxxxxxxxxxxxx>
Date: Thu, 11 Aug 2016 18:17:22 +0100

> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Currently, if calipso_genopt fails then the error exit path
> does not free the ipv6_opt_hdr new causing a memory leak. Fix
> this by kfree'ing new on the error exit path.
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Applied, thanks.