You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/09/01 06:33:54 UTC

[GitHub] [incubator-nuttx] pkarashchenko commented on a diff in pull request #6956: net/tcp: use independent work to free the conn instance

pkarashchenko commented on code in PR #6956:
URL: https://github.com/apache/incubator-nuttx/pull/6956#discussion_r960267262


##########
net/tcp/tcp_close.c:
##########
@@ -175,11 +178,15 @@ static uint16_t tcp_close_eventhandler(FAR struct net_driver_s *dev,
   return flags;
 
 end_wait:
-  tcp_callback_free(conn, conn->clscb);
+  if (conn->clscb)

Review Comment:
   optional
   ```suggestion
     if (conn->clscb != NULL)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org