From 9fcc72168ec032e079a4fc06466e5a2977360c53 Mon Sep 17 00:00:00 2001 From: Liangwei Dong Date: Tue, 24 Oct 2017 13:43:52 +0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index d9971dd9be93..b1ad240521c2 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/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();