You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/10/17 15:58:10 UTC

[nuttx] branch releases/12.3 updated: net/local: Allow the local udp socketpair function to use the local_release_fifos interface.

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch releases/12.3
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/releases/12.3 by this push:
     new 86bacce7a1 net/local: Allow the local udp socketpair function to use the local_release_fifos interface.
86bacce7a1 is described below

commit 86bacce7a1eb5c89fd63f15697a643631006bdf2
Author: liqinhui <li...@xiaomi.com>
AuthorDate: Wed Sep 27 16:17:16 2023 +0800

    net/local: Allow the local udp socketpair function to use the local_release_fifos interface.
    
    Signed-off-by: liqinhui <li...@xiaomi.com>
---
 net/local/local_conn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/local/local_conn.c b/net/local/local_conn.c
index 7a27c40661..0fcbee4daf 100644
--- a/net/local/local_conn.c
+++ b/net/local/local_conn.c
@@ -207,10 +207,10 @@ void local_free(FAR struct local_conn_s *conn)
     }
 #endif /* CONFIG_NET_LOCAL_SCM */
 
-#ifdef CONFIG_NET_LOCAL_STREAM
   /* Destroy all FIFOs associted with the connection */
 
   local_release_fifos(conn);
+#ifdef CONFIG_NET_LOCAL_STREAM
   nxsem_destroy(&conn->lc_waitsem);
   nxsem_destroy(&conn->lc_donesem);
 #endif