mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-03 16:14:11 +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:
|
case 0x0101:
|
||||||
get_string_from_data_element(attribute_value, sizeof(str), str);
|
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);
|
printf("SDP Attribute: 0x%04x: %s\n", sdp_event_query_attribute_byte_get_attribute_id(packet), str);
|
||||||
free(str);
|
|
||||||
break;
|
break;
|
||||||
case BLUETOOTH_ATTRIBUTE_PROTOCOL_DESCRIPTOR_LIST: {
|
case BLUETOOTH_ATTRIBUTE_PROTOCOL_DESCRIPTOR_LIST: {
|
||||||
printf("SDP Attribute: 0x%04x\n", sdp_event_query_attribute_byte_get_attribute_id(packet));
|
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:
|
case 0x0101:
|
||||||
get_string_from_data_element(attribute_value, sizeof(str), str);
|
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);
|
printf(" ** Attribute 0x%04x: %s\n", sdp_event_query_attribute_byte_get_attribute_id(packet), str);
|
||||||
free(str);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
/* LISTING_RESUME */
|
/* LISTING_RESUME */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user