diff options
| author | Wu Gao <wugao@codeaurora.org> | 2017-06-16 15:03:59 +0800 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-06-28 04:43:06 -0700 |
| commit | 17a393e0719cd07ab2addb7f348b0f57b8348a34 (patch) | |
| tree | f470a5acde6ddf1dcf10bf05ea3314a8e76899ad | |
| parent | b39ea35638d4a05c8e193f9fa3f26d8f818acd53 (diff) | |
qcacmn: Free events logs list of wmi handle
Free events logs list of wmi handle, avoid memory leak.
Change-Id: I7660239f3808ebf0f56baf5900c1290218507406
CRs-Fixed: 2062407
| -rw-r--r-- | wmi/src/wmi_unified.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wmi/src/wmi_unified.c b/wmi/src/wmi_unified.c index 2eef15a95346..d362586e6e06 100644 --- a/wmi/src/wmi_unified.c +++ b/wmi/src/wmi_unified.c @@ -1864,6 +1864,10 @@ void wmi_unified_detach(struct wmi_unified *wmi_handle) buf = qdf_nbuf_queue_remove(&wmi_handle->event_queue); } + /* Free events logs list */ + if (wmi_handle->events_logs_list) + qdf_mem_free(wmi_handle->events_logs_list); + #ifdef WMI_INTERFACE_EVENT_LOGGING wmi_log_buffer_free(wmi_handle); #endif |
