Bluedroid: Fix gatt clcb allocation and deallocation error

This commit is contained in:
sushant.chougule
2020-07-18 08:38:19 +05:30
committed by bot
parent ba717a298f
commit a7d8d2c8da
2 changed files with 24 additions and 17 deletions
@@ -186,10 +186,10 @@ BOOLEAN BTM_SecDeleteDevice (BD_ADDR bd_addr, tBT_TRANSPORT transport)
return FALSE;
}
if ((p_dev_rec = btm_find_dev(bd_addr)) != NULL) {
btm_sec_free_dev(p_dev_rec, transport);
/* Tell controller to get rid of the link key, if it has one stored */
BTM_DeleteStoredLinkKey (p_dev_rec->bd_addr, NULL);
btm_sec_free_dev(p_dev_rec, transport);
}
return TRUE;