diff --git a/src/core/pbuf.c b/src/core/pbuf.c index 1400a752..db017fa4 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -63,7 +63,9 @@ void eth_rx_irq() dma_desc->rx_data, dma_desc->max_buffer_size); - netif->input(p, netif); + if(netif->input(p, netif) != ERR_OK) { + pbuf_free(p); + } } @endcode */