Browse Source

component/bt: Fix BLE SMP free without init

baohongde 6 years ago
parent
commit
f77a5851bb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      components/bt/host/bluedroid/stack/btu/btu_init.c

+ 3 - 3
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)
 #if (defined(GATT_INCLUDED) && GATT_INCLUDED == true)
     gatt_free();
     gatt_free();
 #endif
 #endif
-    btm_ble_free();
-#endif
-    btm_free();
 #if SMP_INCLUDED == TRUE
 #if SMP_INCLUDED == TRUE
     SMP_Free();
     SMP_Free();
 #endif
 #endif
+    btm_ble_free();
+#endif
+    btm_free();
 }
 }
 
 
 /*****************************************************************************
 /*****************************************************************************