mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 21:54:33 +08:00
free protocol descriptor list properly
This commit is contained in:
parent
fa8b3a2161
commit
d053332812
@ -892,7 +892,8 @@ static void print_service_attr(sdp_record_t *rec)
|
||||
if (sdp_get_access_protos(rec, &proto) == 0) {
|
||||
printf("Protocol Descriptor List:\n");
|
||||
sdp_list_foreach(proto, print_access_protos, 0);
|
||||
sdp_list_free(proto, (sdp_free_func_t)sdp_data_free);
|
||||
sdp_list_foreach(proto, (sdp_list_func_t)sdp_list_free, 0);
|
||||
sdp_list_free(proto, 0);
|
||||
}
|
||||
if (sdp_get_lang_attr(rec, &list) == 0) {
|
||||
printf("Language Base Attr List:\n");
|
||||
|
Loading…
Reference in New Issue
Block a user