examples: panu_demo.c + sdp_bnep_query.c, don't free local variable

This commit is contained in:
Matthias Ringwald 2018-11-28 11:14:21 +01:00
parent c81841c709
commit 2530362585
2 changed files with 0 additions and 2 deletions

View File

@ -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));

View File

@ -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 */