Browse Source

Merge "qcacld-3.0: Fix memory leak for IPA config allocation" into wlan-cld3.driver.lnx.2.0

CNSS_WLAN Service 4 years ago
parent
commit
004bbfdab0
1 changed files with 5 additions and 2 deletions
  1. 5 2
      core/hdd/src/wlan_hdd_main.c

+ 5 - 2
core/hdd/src/wlan_hdd_main.c

@@ -3896,14 +3896,14 @@ int hdd_wlan_start_modules(struct hdd_context *hdd_ctx, bool reinit)
 			hdd_err("Failed to Open legacy components; status: %d",
 				status);
 			ret = qdf_status_to_os_return(status);
-			goto cds_free;
+			goto ipa_component_free;
 		}
 
 		ret = hdd_update_config(hdd_ctx);
 		if (ret) {
 			hdd_err("Failed to update configuration; errno: %d",
 				ret);
-			goto cds_free;
+			goto ipa_component_free;
 		}
 
 		status = wbuff_module_init();
@@ -4070,6 +4070,9 @@ psoc_close:
 	wlan_global_lmac_if_close(hdd_ctx->psoc);
 	cds_deinit_ini_config();
 
+ipa_component_free:
+	ucfg_ipa_component_config_free();
+
 cds_free:
 	ol_cds_free();