diff --git a/net/local/local_conn.c b/net/local/local_conn.c index f6fcd8294d..165dc12a3f 100644 --- a/net/local/local_conn.c +++ b/net/local/local_conn.c @@ -299,7 +299,7 @@ void local_free(FAR struct local_conn_s *conn) dq_rem(&conn->lc_conn.node, &g_local_connections); - if (local_peerconn(conn) && conn->lc_peer) + if (conn->lc_peer) { conn->lc_peer->lc_peer = NULL; conn->lc_peer = NULL;