From: Jouni Malinen Date: Fri, 22 Nov 2013 11:48:02 +0000 (+0200) Subject: VHT: Fix memory leak in STA entry X-Git-Tag: hostap_2_1~504 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc14091eab7be8d7bc21a7ea18ca2d28de08822a;p=thirdparty%2Fhostap.git VHT: Fix memory leak in STA entry Commit de3cdf354a30256ece16866ff5a283b66e1471ae adding copying of the STA's VHT capabilities into the STA entry on the AP. This was done in allocated memory, but that new memory allocation was not freed anywhere. Signed-hostap: Jouni Malinen --- diff --git a/src/ap/sta_info.c b/src/ap/sta_info.c index a6775f3f9..9d28d9cee 100644 --- a/src/ap/sta_info.c +++ b/src/ap/sta_info.c @@ -262,6 +262,7 @@ void ap_free_sta(struct hostapd_data *hapd, struct sta_info *sta) wpabuf_free(sta->hs20_ie); os_free(sta->ht_capabilities); + os_free(sta->vht_capabilities); hostapd_free_psk_list(sta->psk); os_free(sta->identity); os_free(sta->radius_cui);