Re: [PATCH] ixgbe: fix memory leak on ipsec allocation

2018-05-09 Thread Shannon Nelson
On 5/9/2018 6:58 AM, Colin King wrote: From: Colin Ian King The error clean up path kfree's adapter->ipsec and should be instead kfree'ing ipsec. Fix this. Also, the err1 error exit path does not need to kfree ipsec because this failure path was for the failed allocation of ipsec. Detected by

[PATCH] ixgbe: fix memory leak on ipsec allocation

2018-05-09 Thread Colin King
From: Colin Ian King The error clean up path kfree's adapter->ipsec and should be instead kfree'ing ipsec. Fix this. Also, the err1 error exit path does not need to kfree ipsec because this failure path was for the failed allocation of ipsec. Detected by CoverityScan, CID#146424 ("Resource Leak