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

2016-08-14 Thread David Miller
From: Colin King Date: Thu, 11 Aug 2016 18:17:22 +0100 > From: Colin Ian King > > 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 Appl

[PATCH] calipso: fix resource leak on calipso_genopt failure

2016-08-11 Thread Colin King
From: Colin Ian King 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 --- net/ipv6/calipso.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletio