Matteo Concas commented on a discussion on rtemslwip/greth/greth_netif.c: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_152484 > + if ( !rxch->rx_pbuf_ref ) { > + greth_debug_printf( > + "[ERR] greth_init_buffer_descriptors: Failed to allocate memory " > + "for RX pbuf references\n" > + ); > + goto free_rx_pbuf; > + } > + > + txch->desc_array = (struct greth_bd *) > + aligned_alloc( bd_table_size, bd_table_size ); > + if ( !txch->desc_array ) { > + greth_debug_printf( > + "[ERR] greth_init_buffer_descriptors: Failed to allocate memory " > + "for TX descriptors\n" > + ); > + goto free_tx_desc; Replaced the gotos with a call to `greth_deinit_buffer_descriptors()`. -- View it on GitLab: https://gitlab.rtems.org/rtems/pkg/rtems-lwip/-/merge_requests/40#note_152484 You're receiving this email because of your account on gitlab.rtems.org.
_______________________________________________ bugs mailing list [email protected] http://lists.rtems.org/mailman/listinfo/bugs
