|
@@ -6486,8 +6486,10 @@ static QDF_STATUS send_log_supported_evt_cmd_tlv(wmi_unified_t wmi_handle,
|
|
|
__func__, num_of_diag_events_logs);
|
|
|
|
|
|
/* Free any previous allocation */
|
|
|
- if (wmi_handle->events_logs_list)
|
|
|
+ if (wmi_handle->events_logs_list) {
|
|
|
qdf_mem_free(wmi_handle->events_logs_list);
|
|
|
+ wmi_handle->events_logs_list = NULL;
|
|
|
+ }
|
|
|
|
|
|
if (num_of_diag_events_logs >
|
|
|
(WMI_SVC_MSG_MAX_SIZE / sizeof(uint32_t))) {
|