fix memory leak in netif_loop_output if tcpip_try_callback fails

Signed-off-by: Simon Goldschmidt <goldsimon@gmx.de>
This commit is contained in:
Nick Ballhorn-Wagner
2020-02-21 17:17:08 +01:00
committed by Simon Goldschmidt
parent d05be56a50
commit 349ec76ee5
2 changed files with 23 additions and 5 deletions

View File

@@ -398,6 +398,10 @@ struct netif {
#if LWIP_LOOPBACK_MAX_PBUFS
u16_t loop_cnt_current;
#endif /* LWIP_LOOPBACK_MAX_PBUFS */
#if LWIP_NETIF_LOOPBACK_MULTITHREADING
/* Used if the original scheduling failed. */
u8_t reschedule_poll;
#endif /* LWIP_NETIF_LOOPBACK_MULTITHREADING */
#endif /* ENABLE_LOOPBACK */
};