From eb3a08308d7822a0b244265d89c72a2492eca49a Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 20 Sep 2016 09:14:32 +0200 Subject: [PATCH] Improve my last docs --- src/core/pbuf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 */