Bluedroid: Fix gatt clcb allocation and deallocation error
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user