diff --git a/core/hdd/src/wlan_hdd_cfg80211.c b/core/hdd/src/wlan_hdd_cfg80211.c index 51db998d051d..41d61fb90780 100644 --- a/core/hdd/src/wlan_hdd_cfg80211.c +++ b/core/hdd/src/wlan_hdd_cfg80211.c @@ -2526,6 +2526,8 @@ static int __wlan_hdd_cfg80211_do_acs(struct wiphy *wiphy, } sap_config = &adapter->session.ap.sap_config; + if (sap_config->acs_cfg.ch_list) + qdf_mem_free(sap_config->acs_cfg.ch_list); qdf_mem_zero(&sap_config->acs_cfg, sizeof(struct sap_acs_cfg)); status = hdd_nla_parse(tb, QCA_WLAN_VENDOR_ATTR_ACS_MAX, data, data_len,