Component/bt: fix notify memory leak for v3.0
This commit is contained in:
parent
6698be57c8
commit
6ae56b61cf
2 changed files with 5 additions and 0 deletions
|
@ -41,7 +41,9 @@ static void btc_enable_bluetooth(void)
|
||||||
|
|
||||||
static void btc_disable_bluetooth(void)
|
static void btc_disable_bluetooth(void)
|
||||||
{
|
{
|
||||||
|
#if (SMP_INCLUDED)
|
||||||
btc_config_shut_down();
|
btc_config_shut_down();
|
||||||
|
#endif /* #if (SMP_INCLUDED) */
|
||||||
if (BTA_DisableBluetooth() != BTA_SUCCESS) {
|
if (BTA_DisableBluetooth() != BTA_SUCCESS) {
|
||||||
future_ready(*btc_main_get_future_p(BTC_MAIN_DISABLE_FUTURE), FUTURE_FAIL);
|
future_ready(*btc_main_get_future_p(BTC_MAIN_DISABLE_FUTURE), FUTURE_FAIL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -209,6 +209,9 @@ static void blufi_profile_cb(tBTA_GATTS_EVT event, tBTA_GATTS *p_data)
|
||||||
break;
|
break;
|
||||||
case BTA_GATTS_CONF_EVT:
|
case BTA_GATTS_CONF_EVT:
|
||||||
LOG_DEBUG("CONIRM EVT\n");
|
LOG_DEBUG("CONIRM EVT\n");
|
||||||
|
if (p_data && p_data->req_data.value){
|
||||||
|
osi_free(p_data->req_data.value);
|
||||||
|
}
|
||||||
/* Nothing */
|
/* Nothing */
|
||||||
break;
|
break;
|
||||||
case BTA_GATTS_CREATE_EVT:
|
case BTA_GATTS_CREATE_EVT:
|
||||||
|
|
Loading…
Reference in a new issue