Fixed freeing "tcp_wait" in tcp_accept_thread() before parsing it.