From f77a5851bb6e84ca46d3befcd46aa3c4fb507792 Mon Sep 17 00:00:00 2001 From: baohongde Date: Fri, 26 Jul 2019 11:18:42 +0800 Subject: [PATCH] component/bt: Fix BLE SMP free without init --- components/bt/host/bluedroid/stack/btu/btu_init.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/bt/host/bluedroid/stack/btu/btu_init.c b/components/bt/host/bluedroid/stack/btu/btu_init.c index 52ce3a6e15..80678bef82 100644 --- a/components/bt/host/bluedroid/stack/btu/btu_init.c +++ b/components/bt/host/bluedroid/stack/btu/btu_init.c @@ -129,12 +129,12 @@ void btu_free_core(void) #if (defined(GATT_INCLUDED) && GATT_INCLUDED == true) gatt_free(); #endif - btm_ble_free(); -#endif - btm_free(); #if SMP_INCLUDED == TRUE SMP_Free(); #endif + btm_ble_free(); +#endif + btm_free(); } /*****************************************************************************