Browse Source

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>
Avinash Patil 13 years ago
parent
commit
c9015b24b2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/wireless/mwifiex/ie.c

+ 1 - 0
drivers/net/wireless/mwifiex/ie.c

@@ -213,6 +213,7 @@ mwifiex_update_uap_custom_ie(struct mwifiex_private *priv,
 		/* save assoc resp ie index after auto-indexing */
 		/* save assoc resp ie index after auto-indexing */
 		*assoc_idx = *((u16 *)pos);
 		*assoc_idx = *((u16 *)pos);
 
 
+	kfree(ap_custom_ie);
 	return ret;
 	return ret;
 }
 }