diff --git a/net/tcp/tcp_timer.c b/net/tcp/tcp_timer.c index e769c7abaf..9c063b0f5f 100644 --- a/net/tcp/tcp_timer.c +++ b/net/tcp/tcp_timer.c @@ -270,6 +270,7 @@ void tcp_timer(FAR struct net_driver_s *dev, FAR struct tcp_conn_s *conn, /* Finally, we must free this TCP connection structure */ + conn->crefs = 0; tcp_free(conn); goto done; }