diff --git a/components/bt/host/bluedroid/btc/profile/std/sdp/btc_sdp.c b/components/bt/host/bluedroid/btc/profile/std/sdp/btc_sdp.c index d41ffb2debe8..7dc42ce0972a 100644 --- a/components/bt/host/bluedroid/btc/profile/std/sdp/btc_sdp.c +++ b/components/bt/host/bluedroid/btc/profile/std/sdp/btc_sdp.c @@ -286,7 +286,7 @@ static int free_sdp_slot(int id) handle = -1; } osi_free(slot); - slot = NULL; + sdp_local_param.sdp_slots[id] = NULL; return handle; }