mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-25 06:40:10 +00:00
mesh: free outgoing segment in mesh_lower_transport_reset for unit tests
This commit is contained in:
parent
a6f8b02412
commit
1e6cebb82b
@ -757,19 +757,17 @@ static void mesh_lower_transport_reset_network_pdus(btstack_linked_list_t *list)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void mesh_lower_transport_dump(void){
|
void mesh_lower_transport_dump(void){
|
||||||
// static btstack_linked_list_t upper_transport_control;
|
|
||||||
// static btstack_linked_list_t upper_transport_access;
|
|
||||||
mesh_lower_transport_dump_network_pdus("lower_transport_incoming", &lower_transport_incoming);
|
mesh_lower_transport_dump_network_pdus("lower_transport_incoming", &lower_transport_incoming);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mesh_lower_transport_reset(void){
|
void mesh_lower_transport_reset(void){
|
||||||
// static btstack_linked_list_t upper_transport_control;
|
|
||||||
// static btstack_linked_list_t upper_transport_access;
|
|
||||||
mesh_lower_transport_reset_network_pdus(&lower_transport_incoming);
|
mesh_lower_transport_reset_network_pdus(&lower_transport_incoming);
|
||||||
if (lower_transport_outgoing_pdu){
|
if (lower_transport_outgoing_pdu){
|
||||||
mesh_transport_pdu_free(lower_transport_outgoing_pdu);
|
mesh_transport_pdu_free(lower_transport_outgoing_pdu);
|
||||||
lower_transport_outgoing_pdu = NULL;
|
lower_transport_outgoing_pdu = NULL;
|
||||||
}
|
}
|
||||||
|
mesh_network_pdu_free(lower_transport_outgoing_segment);
|
||||||
|
lower_transport_outgoing_segment = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void mesh_lower_transport_init(){
|
void mesh_lower_transport_init(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user