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
This commit is contained in:
Liangwei Dong 2017-10-24 13:43:52 +08:00 • committed by snandini
commit 9fcc72168e

View file

@ -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();