Browse Source

qcacld-3.0: Fix memory leak of osif_request

The memory allocated for osif_request in wlan_hdd_send_ll_stats_req
is not properly freed and to fix this memory leak, free the memory by
calling osif_request_put() before returning.

Change-Id: I8c60d7d262f7f3ef4a40a1ff272da2516f2d581e
CRs-Fixed: 3220876
Aditya Kodukula 2 years ago
parent
commit
e1e3d36bdb
1 changed files with 1 additions and 0 deletions
  1. 1 0
      core/hdd/src/wlan_hdd_stats.c

+ 1 - 0
core/hdd/src/wlan_hdd_stats.c

@@ -1715,6 +1715,7 @@ void wlan_hdd_cfg80211_link_layer_stats_callback(hdd_handle_t hdd_handle,
 		adapter = hdd_get_adapter_by_vdev(hdd_ctx, results->ifaceId);
 		if (!adapter) {
 			hdd_err("invalid vdev %d", results->ifaceId);
+			osif_request_put(request);
 			return;
 		}