Fixed pcb leak when accept-callback is NULL and asserts are disabled

This commit is contained in:
goldsimon 2010-02-20 17:27:08 +00:00
parent e131d3e32a
commit eae9798276

View File

@ -511,7 +511,7 @@ err_t lwip_tcp_event(void *arg, struct tcp_pcb *pcb,
do { \
if((pcb)->accept != NULL) \
(ret) = (pcb)->accept((pcb)->callback_arg,(pcb),(err)); \
else (ret) = ERR_OK; \
else (ret) = ERR_ARG; \
} while (0)
#define TCP_EVENT_SENT(pcb,space,ret) \