mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-03 07:13:51 +00:00
examples: panu_demo.c + sdp_bnep_query.c, don't free local variable
This commit is contained in:
parent
c81841c709
commit
2530362585
@ -199,7 +199,6 @@ static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel
|
||||
case 0x0101:
|
||||
get_string_from_data_element(attribute_value, sizeof(str), str);
|
||||
printf("SDP Attribute: 0x%04x: %s\n", sdp_event_query_attribute_byte_get_attribute_id(packet), str);
|
||||
free(str);
|
||||
break;
|
||||
case BLUETOOTH_ATTRIBUTE_PROTOCOL_DESCRIPTOR_LIST: {
|
||||
printf("SDP Attribute: 0x%04x\n", sdp_event_query_attribute_byte_get_attribute_id(packet));
|
||||
|
@ -208,7 +208,6 @@ static void handle_sdp_client_query_result(uint8_t packet_type, uint16_t channel
|
||||
case 0x0101:
|
||||
get_string_from_data_element(attribute_value, sizeof(str), str);
|
||||
printf(" ** Attribute 0x%04x: %s\n", sdp_event_query_attribute_byte_get_attribute_id(packet), str);
|
||||
free(str);
|
||||
break;
|
||||
|
||||
/* LISTING_RESUME */
|
||||
|
Loading…
x
Reference in New Issue
Block a user