Merge branch 'bugfix/ethernetif_memory_leak_v3.1' into 'release/v3.1'

fix potential ethernet memory leak(backport v3.1)

See merge request idf/esp-idf!3688
This commit is contained in:
Angus Gratton
2018-11-14 14:23:43 +08:00

View File

@@ -196,7 +196,6 @@ if (netif->input(p, netif) != ERR_OK) {
/* full packet send to tcpip_thread to process */
if (netif->input(p, netif) != ERR_OK) {
LWIP_DEBUGF(NETIF_DEBUG, ("ethernetif_input: IP input error\n"));
p->l2_owner = NULL;
pbuf_free(p);
}
#endif