Parcourir la source

qcacld-3.0: Fix memory leak

To fix pmo_ctx memory leak by call component_deinit in
failure path of __hdd_module_init.

Change-Id: I66ee4566e805c9510d6dec219dc397bc7191952c
CRs-Fixed: 2131441
Liangwei Dong il y a 7 ans
Parent
commit
9fcc72168e
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      core/hdd/src/wlan_hdd_main.c

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

@@ -11291,6 +11291,7 @@ static int __hdd_module_init(void)
 	return 0;
 out:
 	qdf_wake_lock_destroy(&wlan_wake_lock);
+	component_deinit();
 	dispatcher_deinit();
 	hdd_deinit();