[PATCH 3/3] iw: Avoid possible memory leak for cb

2015-08-13 Thread Amit Khatri
cb got memory from nl_cb_alloc() but not doing free during error case and use same lable to go out from function. Signed-off-by: Amit Khatri amit.kha...@samsung.com Signed-off-by: Rahul Jain rahul.j...@samsung.com --- iw.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git

Re: [PATCH 3/3] iw: Avoid possible memory leak for cb

2015-08-13 Thread Johannes Berg
This patch doesn't look correct - in the case that 'cb' fails to allocate, the existing code is actually correct. In the case that s_cb fails to allocate, it's clearly incorrect, but that means the two conditions need to be disentangled, no? Also, I've applied the other two patches despite them