summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/hdd/src/wlan_hdd_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c
index 7b2f4681a34f..9b01e36f7884 100644
--- a/core/hdd/src/wlan_hdd_main.c
+++ b/core/hdd/src/wlan_hdd_main.c
@@ -2205,6 +2205,7 @@ int hdd_wlan_start_modules(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter,
return 0;
post_disable:
+ sme_destroy_config(hdd_ctx->hHal);
cds_post_disable();
close:
@@ -2225,7 +2226,10 @@ power_down:
release_lock:
hdd_ctx->start_modules_in_progress = false;
mutex_unlock(&hdd_ctx->iface_change_lock);
-
+ if (hdd_ctx->target_hw_name) {
+ qdf_mem_free(hdd_ctx->target_hw_name);
+ hdd_ctx->target_hw_name = NULL;
+ }
/* many adapter resources are not freed by design in SSR case */
if (!reinit)
hdd_check_for_leaks();