mirror of https://gitee.com/openkylin/linux.git
mwifiex: fix memory leak associated with IE manamgement
Free ap_custom_ie before return from function. Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Bing Zhao <bzhao@marvell.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
6bb51c70ca
commit
c9015b24b2
|
@ -213,6 +213,7 @@ mwifiex_update_uap_custom_ie(struct mwifiex_private *priv,
|
|||
/* save assoc resp ie index after auto-indexing */
|
||||
*assoc_idx = *((u16 *)pos);
|
||||
|
||||
kfree(ap_custom_ie);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue