fix(bt/bluedorid): Fixed crash caused by using illegal pointer

This commit is contained in:
xiongweichao
2024-02-27 17:14:13 +08:00
committed by Xiong Wei Chao
parent da2a32fbad
commit eab0acdb3c

View File

@ -285,8 +285,8 @@ static int free_sdp_slot(int id)
// Record have already been freed
handle = -1;
}
osi_free(slot);
slot = NULL;
osi_free(sdp_local_param.sdp_slots[id]);
sdp_local_param.sdp_slots[id] = NULL;
return handle;
}