diff --git a/umac/scan/dispatcher/src/wlan_scan_utils_api.c b/umac/scan/dispatcher/src/wlan_scan_utils_api.c index dc3791c1f1a6..7ffe30b413d1 100644 --- a/umac/scan/dispatcher/src/wlan_scan_utils_api.c +++ b/umac/scan/dispatcher/src/wlan_scan_utils_api.c @@ -2540,6 +2540,7 @@ static QDF_STATUS util_scan_parse_mbssid(struct wlan_objmgr_pdev *pdev, if (mbssid_info.split_prof_continue) { qdf_mem_free(split_prof_start); split_prof_start = NULL; + split_prof_end = NULL; } continue; } @@ -2604,6 +2605,7 @@ static QDF_STATUS util_scan_parse_mbssid(struct wlan_objmgr_pdev *pdev, if (mbssid_info.split_prof_continue) { qdf_mem_free(split_prof_start); split_prof_start = NULL; + split_prof_end = NULL; qdf_mem_zero(&mbssid_info, sizeof(mbssid_info)); } @@ -2617,6 +2619,7 @@ static QDF_STATUS util_scan_parse_mbssid(struct wlan_objmgr_pdev *pdev, if (mbssid_info.split_prof_continue) { qdf_mem_free(split_prof_start); split_prof_start = NULL; + split_prof_end = NULL; } qdf_mem_free(new_frame); }