Skip to content

Commit

Permalink
bluedroid: btc_sdp: fix sdp slot release
Browse files Browse the repository at this point in the history
SDP slot in the database wasn't actually freed.
That's caused a bug when you can't add SDP records after deleting old
records: alloc_sdp_slot() reported that there is no more free slots.
  • Loading branch information
ilutchenko committed Sep 21, 2023
1 parent 26d1adb commit a1f8509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/bt/host/bluedroid/btc/profile/std/sdp/btc_sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a1f8509

Please sign in to comment.