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 8c43d83689
commit b1f8ce8769
2 changed files with 23 additions and 5 deletions

View File

@@ -386,6 +386,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 */
};